Commit graph

91 commits

Author SHA1 Message Date
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
Antoine Gersant
85f4492b92 Applied rustfmt 2016-11-30 23:16:06 -08:00
Antoine Gersant
1099c0dcf1 Added metadata decoding tests 2016-11-30 22:10:16 -08:00
Antoine Gersant
431852f1e0 Fixed config and cache files locations 2016-11-21 00:13:55 -08:00
Antoine Gersant
c3e5e27f23 Moved metadata decoding to a separate module 2016-11-16 16:51:09 -08:00
Antoine Gersant
b5d9bca981 Added support for Ogg Vorbis 2016-11-16 16:34:36 -08:00
Antoine Gersant
83d6f1e5b0 Added support for disc numbers 2016-11-14 14:39:42 -08:00
Antoine Gersant
05e646a640 Configurable re-index period 2016-11-13 22:08:04 -08:00
Antoine Gersant
6268202e6d Updated index constants to lower chances of failed requests during indexing 2016-11-13 20:58:53 -08:00
Antoine Gersant
2150241ae1 rustfmt 2016-11-13 16:49:45 -08:00
Antoine Gersant
f21e4e055f Added support for APE metadata 2016-11-13 16:45:12 -08:00
Antoine Gersant
3c47c0ea7d Fixed a bug where song/directories sorting was case sensitive 2016-11-13 14:48:10 -08:00
Antoine Gersant
3d82ff4ef2 More accurate output messages 2016-11-06 22:40:05 -08:00
Antoine Gersant
84a075b173 Replaced .map() horrors by a couple helper functions 2016-11-01 00:03:14 -07:00
Antoine Gersant
f7a01f7e0b Fixed a bug where content wasn't ordered reliably 2016-10-30 22:16:29 -07:00
Antoine Gersant
0d6d7f442d Reduce module name spam 2016-10-30 22:11:43 -07:00
Antoine Gersant
79604e100a Fixed a bug where index was unusable during its updates 2016-10-30 22:07:28 -07:00
Antoine Gersant
653eb84350 Merged similar code for selecting songs 2016-10-30 21:08:10 -07:00
Antoine Gersant
8ef60c81e9 Delete index content if no longer in VFS 2016-10-30 20:28:50 -07:00
Antoine Gersant
fdd741d5fc Got rid of cursors 2016-10-30 20:21:09 -07:00
Antoine Gersant
462cd8babb Implemented flatten 2016-10-30 17:19:57 -07:00
Antoine Gersant
6bf65ac45a Implemented /browse 2016-10-30 17:00:09 -07:00
Antoine Gersant
d56b4d365c Index songs and directories to DB 2016-10-29 18:31:37 -07:00
Antoine Gersant
ba196a8c25 Setup index DB, moved VFS out of Collection 2016-10-25 01:37:50 -07:00