Commit graph

161 commits

Author SHA1 Message Date
Antoine Gersant
1d0b4929fd Use lowercase names on linux 2017-05-29 18:28:31 -07:00
Antoine Gersant
6084ad2703 Serve /web files from app data rather than relative path.
Also added CLI option to serve from custom path.
2017-05-29 18:28:05 -07:00
Antoine Gersant
f6ca5bace4 Autoformat 2017-05-29 12:01:07 -07:00
Antoine Gersant
8eaefb6dba Moved app data into user folders instead of system folders 2017-05-28 22:46:42 -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
5866076b21 Use serde to parse config file 2017-05-08 22:47:15 -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
8e64f6baaf Bumped API version number 2017-05-07 23:58:38 -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
56bb1d4e23 Added support for http Authorization header 2017-05-06 20:22:10 -07:00
Danny Angelo Carminati Grein
b348be4e10 Fix commented issues. 2017-01-25 21:15:35 -05:00
Danny Angelo Carminati Grein
f04e1bc4d7 Fix broken player if mounted path had a trailing slash. The query on
browse_songs wasn't returning any results as in the database they were
save without the trailing slash.

Add two complementary output messages in case of errors trying to
create SharedData and SharedConfig where on Linux XDG defaults to
readonly system wide paths based on XDG_CONFIG_DIRS and XDG_DATA_DIRS
default values from spec (/etc/xdg and /usr/share for example).

And a minor change in the api to use forward slash.
2017-01-24 22:59:28 -05: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
ef3d55cdbc Fix broken test on Linux 2016-12-17 20:11:56 -08:00
Antoine Gersant
3b2a6f0a3a Fixed broken test on Linux 2016-12-17 20:03:49 -08:00
Antoine Gersant
87c4763cd1 Fixed a bug where most mount directory paths didn't work on Windows 2016-12-17 19:53:50 -08: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
c02b971984 No longer panic on startup/shutdown errors 2016-12-03 12:33:30 -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
a16595a2e1 Added unit tests to utils 2016-11-30 21:43:32 -08:00
Antoine Gersant
63579c2640 Updated Windows installer and application icons 2016-11-27 23:21:12 -08:00
Antoine Gersant
ee4a7f8f15 Store files in shared directory 2016-11-21 01:34:28 -08:00
Antoine Gersant
a0b89d5acf Removed redundant errors 2016-11-21 00:15:05 -08:00
Antoine Gersant
431852f1e0 Fixed config and cache files locations 2016-11-21 00:13:55 -08:00
Antoine Gersant
83d0fa1d79 Added API endpoint for version number 2016-11-20 13:48:00 -08:00
Antoine Gersant
88318e5b4f Added support for Flac metadata 2016-11-16 17:27:53 -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
d9abb35e4d Extracted audio format detection from is_song() 2016-11-13 16:44:31 -08:00
Antoine Gersant
889c3251df Fixed a bug where uppercase extensions were not recognized 2016-11-13 14:59:39 -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
507d922c92 Addressing Rust 1.13 warnings 2016-11-13 01:18:53 -08:00
Antoine Gersant
e57bb39a23 More lenient parsing of file paths in config file 2016-11-07 23:11:32 -08:00
Antoine Gersant
3d82ff4ef2 More accurate output messages 2016-11-06 22:40:05 -08:00