Commit graph

60 commits

Author SHA1 Message Date
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
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