Commit graph

73 commits

Author SHA1 Message Date
Antoine Gersant
f905bc4f73 Added API endpoint to unlink last.fm account 2018-10-07 18:06:29 -07:00
Antoine Gersant
fea0b4ef25 Updated diesel dependency 2018-10-06 18:13:44 -07:00
Antoine Gersant
ec69a3568f Fixed clippy lints 2018-10-06 16:29:46 -07:00
Antoine Gersant
0297b351bf Rustfmt 2018-10-06 15:46:30 -07:00
Antoine Gersant
2092813258 Changed LastFM auth flow from application flow to web-flow 2018-10-06 14:41:25 -07:00
Antoine Gersant
c52ec3d30c Added support for lastfm scrobbling
- Added user preferences
- Added time and location to log entries
2018-03-06 21:36:10 -08:00
Antoine Gersant
a9bdb7bb2d Updated deprecated diesel construct 2017-12-12 21:23:29 -08:00
João Oliveira
418c8e52ab add duration to song table and default it's value to None for all
formats on song tags
2017-12-03 13:24:04 +00:00
Antoine Gersant
62688a8402 Implemented search 2017-11-03 13:42:42 -07:00
Antoine Gersant
24c6fcb4f4 Formatting 2017-11-03 12:29:10 -07:00
Antoine Gersant
e079574879 Fixed diesel warnings 2017-11-03 12:28:41 -07:00
Antoine Gersant
65f3e268dc Bump to latest diesel, stub search function 2017-11-03 12:14:53 -07:00
João Oliveira
55d6e412d6 update project to use log crate and replace println! calls with equivalent log level macro calls 2017-10-14 04:34:54 +01:00
Antoine Gersant
54c5704133 Fixed a bug where it was not possible to flatten the entire collection 2017-09-26 23:00:08 -07:00
Antoine Gersant
66e772feb3 Added API endpoint to read playlist content 2017-09-23 17:56:54 -07:00
Antoine Gersant
488ef5169e read_playlist now uses a SQL join 2017-07-10 23:39:30 -07:00
Antoine Gersant
0f0fce66ce Fixed import warnings 2017-07-10 22:27:45 -07:00
Antoine Gersant
a44c56ee67 Implemented playlist read 2017-07-10 22:22:22 -07:00
Antoine Gersant
ad22a3529f Fixed a bug where songs weren't sorted correctly in api/flatten 2017-07-10 21:26:57 -07:00
Antoine Gersant
bd537b8134 Simplified connection API 2017-07-09 23:32:02 -07:00
Antoine Gersant
ec30987d3a Removed unused import 2017-07-09 16:13:53 -07:00
Antoine Gersant
88c692e9a5 Share test DB function between modules 2017-07-09 15:54:08 -07:00
Antoine Gersant
9a9abbe39d Defined SQL random 2017-07-08 11:46:32 -07:00
Antoine Gersant
48f5ea9f88 Autoformat 2017-07-08 02:13:53 -07:00
Antoine Gersant
c5db1f250f Fixed infinite loop in index process after IO errors 2017-07-08 01:32:41 -07:00
Antoine Gersant
4b251dd953 Added API endpoint to trigger collection reindex 2017-07-04 17:16:32 -07:00
Antoine Gersant
f42e40b766 Added API endpoint to edit configuration 2017-07-01 18:04:52 -07:00
Antoine Gersant
89d746268e Moved config business out of DB struct 2017-07-01 13:43:13 -07:00
Antoine Gersant
f498956710 Less coupling between DB and Index 2017-07-01 13:30:31 -07:00
Antoine Gersant
bdc33a29aa Cosmetic changes 2017-07-01 13:09:51 -07:00
Antoine Gersant
312be5e631 Moved index functionality out of DB struct 2017-07-01 13:06:55 -07:00
Antoine Gersant
c314f7a452 Loosen coupling between db and other modules 2017-07-01 12:26:14 -07:00
Antoine Gersant
f9562b5c8c Cosmetic change 2017-07-01 12:05:13 -07:00
Antoine Gersant
11ff053b9d Moved index out of db module 2017-07-01 12:03:15 -07:00
Antoine Gersant
378c2015b8 Replaced hand-written SQL with diesel 2017-06-25 18:36:54 -07:00
Antoine Gersant
7a7d9eefa9 Made test for recent albums more lenient to do unreliability in CI 2017-05-09 00:15:21 -07:00
Antoine Gersant
42ca66e52a Replaced rustc-serialize by serde
API bump because CollectionFile objects look different (and nicer) in JSON now
2017-05-08 21:18:49 -07:00
Antoine Gersant
29d048b375 Added unit test for getting recent albums 2017-05-08 20:41:45 -07:00
Antoine Gersant
c464b755e5 Fixed a bug where DB indexing was broken on Linux
On platforms where file creation type isn't available, use modification time instead
2017-05-07 23:49:36 -07:00
Antoine Gersant
5781d4cbe5 Added support for fetching recently added albums 2017-05-07 23:32:37 -07:00
Antoine Gersant
d073e02549 Applied rustfmt 2017-05-07 21:21:30 -07:00
Antoine Gersant
1e2bdace39 Fixed a bug where songs weren't ordered by track number 2016-12-22 08:50:55 +01:00
Antoine Gersant
f9a27895b4 Formatting 2016-12-21 07:05:16 +01:00
Antoine Gersant
5ed95d1417 Added new API endpoint for random albums 2016-12-21 06:50:23 +01:00
Antoine Gersant
10c234e92f Formatting 2016-12-03 16:27:33 -08:00
Antoine Gersant
089088d1ee Added index unit tests 2016-12-03 14:57:25 -08:00
Antoine Gersant
0a729184e4 Proper error handling in file indexing
No longer unwrap like there's no tomorrow
2016-12-03 13:42:06 -08:00
Antoine Gersant
2f49aa0e40 Cosmetic changes to debug output 2016-12-03 12:29:22 -08:00
Antoine Gersant
ec8a8da81e Modernized error handling
- Use error-chain instead of writing tons of boilerplate
- Switched try!() macros to '?'
2016-12-03 12:08:55 -08:00
Antoine Gersant
15505f8991 DB path is now a constructor parameter of Index struct 2016-12-02 17:41:29 -08:00