Commit graph

241 commits

Author SHA1 Message Date
Antoine Gersant
d9532dd22c Moved auth() out of DB struct 2017-07-01 12:42:49 -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
48f2913816 Removed models module 2017-07-01 11:59:32 -07:00
Antoine Gersant
e7ef07fe6a Moved index structs out of models module 2017-07-01 11:56:51 -07:00
Antoine Gersant
ac93ec5b02 Moved user structs out of db module 2017-07-01 11:52:41 -07:00
Antoine Gersant
d70abba47e Moved MountPoint structure into vfs module 2017-07-01 11:40:31 -07:00
Antoine Gersant
143e1f6761 Removed unecessary index object 2017-07-01 11:07:36 -07:00
Antoine Gersant
ce90377b2d Removed debug spam 2017-06-29 00:34:52 -07:00
Antoine Gersant
b6b3b8c5b0 Fixed a bug where browse results sort was case sensitive 2017-06-29 00:33:54 -07:00
Antoine Gersant
104381af5d Less boilerplate for VFS config 2017-06-29 00:16:00 -07:00
Antoine Gersant
29bc678c82 Less verbose use of diesel 2017-06-29 00:06:43 -07:00
Antoine Gersant
e41a5273a8 Autoformat 2017-06-28 23:59:48 -07:00
Antoine Gersant
d87ec09c38 Unify DDNS config struct 2017-06-28 23:58:24 -07:00
Antoine Gersant
96e6b86f04 Removed unused imports 2017-06-28 23:38:53 -07:00
Antoine Gersant
66f59da7b2 Moved resident configuration from .toml file to database 2017-06-28 23:37:48 -07:00
Antoine Gersant
55b49f1ace Fixed a bug where browse results were not sorted alphabetically 2017-06-27 21:27:45 -07:00
Antoine Gersant
9ee523f8e1 Minor improvements to indexing:
- Directories now appear before their content during indexing
- No longer error when cleaning a large number of missing items
2017-06-27 00:50:42 -07:00
Antoine Gersant
3089c6f9ab Autoformat 2017-06-25 19:53:25 -07:00
Antoine Gersant
723de5c479 Split indexing process from DB API 2017-06-25 19:51:54 -07:00
Antoine Gersant
2df90902fb Autoformat 2017-06-25 18:37:45 -07:00
Antoine Gersant
378c2015b8 Replaced hand-written SQL with diesel 2017-06-25 18:36:54 -07:00
Antoine Gersant
63f78efa3d Added CLI option for custom DB path 2017-06-24 23:26:37 -07:00
Antoine Gersant
fa3729340a Removed unecessary set-cookie header 2017-06-11 23:28:59 -07:00
Antoine Gersant
942ac099c7 autoformat 2017-06-04 18:32:59 -07:00
Antoine Gersant
d0ce3630e3 Updated lewton dependency 2017-06-04 14:26:30 -07:00
Antoine Gersant
86e618d2a5 Removed the dependency on OpenSSL on Windows
- Replaced session handling by secure_session
- Required updating a bunch of dependencies
- Replaced Hyper Client usage in DDNS by Reqwest (which only uses OpenSSL on Linux)
2017-06-04 13:17:27 -07:00
Antoine Gersant
9fe0bfd046 No longer panic when there's an error while parsing options 2017-05-30 22:49:17 -07:00
Antoine Gersant
f638299665 Run as a daemon on Linux 2017-05-30 22:45:27 -07:00
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