Commit graph

38 commits

Author SHA1 Message Date
duydl
77dc2eac23
Add support for m4b format (#208)
* Add support for m4b

* Formatting

* Formatting

---------

Co-authored-by: Antoine Gersant <antoine.gersant@lesforges.org>
2024-05-09 19:59:45 -07:00
Tobias Schmitz
41a4b21327
Fix clippy warnings (#175) 2022-08-29 21:17:03 -07:00
pmphfm
e2bf97db99
Code cleanup (#148)
Fixed all most all clippy warnings.
Test: cargo test && cargo clippy
2021-10-19 19:31:17 -07:00
gahag
ed581c57cf
Add support for AIFF files (#137)
The new patch in rust-id3 fixes the AIFF API, which is now used to support AIFF files.
2021-04-24 22:05:52 -07:00
gahag
652772ba0e
Implement support for Wave files (#135)
* Implement support for Wave files

Metadata extraction for such format is supported by the latest version of rust-id3, which
has been updated in this commit. The code has been updated to handle such files and call
the new APIs.

* Code review
2021-04-19 21:49:23 -07:00
Antoine Gersant
7edcc38483
Test setup improvements (#125)
* More descriptive test names

* Test writing tools

* Migrate to new test tooling

* Adds test for collection cleaner
2020-12-29 20:05:04 -08:00
Antoine Gersant
b6c446fa02
Rewrote indexer (#107)
* Update index without rayon

* Use crossbeam channels

* Use a single thread for DB insertions

* Better use of rayon in clean()

* Index rewrite

* Parallelize traverser

* Don't swallow send error

* Use Drop trait to flush Inserter work

* Configurable number of traverser threads

* Use channels to manage the work queue instead of Mutex

* Removed unusable profiling feature
2020-12-07 20:07:10 -08:00
Antoine Gersant
538b41a2b4
Use standard directories when running on Linux (#91)
* Use standard Linux directories for application data (https://en.wikipedia.org/wiki/Filesystem_Hierarchy_Standard)

* Use standard system directories

* Cleanup all Polaris files during uninstall

* Expose get_pid_directory to rest of the crate

* Add separate targets for install binary and data files, clean up makefile

* Use environment variables for directory locations during install process

* On Linux, read locations from environment variables at compile time

* Split static_directory in two (web and swagger directories)

* Follow recommendations from the Make manual

* Avoid redundant directories

* Added workflow to validate installer setup

* Added CLI options to locate log file, pid file and cache directory

* Fixed an issue where build command did not support the xdg/system switch

* Renamed log option to log-level

* Fixed an issue where xdg install would do a system build

* Use re-usable action to make linux release

* Avoid nested actions (see https://github.com/actions/runner/issues/646)

* Updated installation instructions

* Replaced deprecated use of set-env
2020-11-26 15:57:08 -08:00
Antoine Gersant
a7ef7b2bd0 Added support for APE files 2020-09-24 01:46:29 -07:00
Yannik Böttcher
8de736e563 properly export and use the match macro 2020-08-07 15:03:36 +02:00
Yannik Böttcher
943174bafa move match macro into utils module 2020-08-07 14:41:07 +02:00
Yannik Böttcher
fee96e6b49 add support for opus files 2020-08-06 17:26:50 +02:00
Wesley Moore
a05c838c5b
Support UNIX platforms that aren't Linux 2020-02-23 12:05:17 +11:00
Antoine Gersant
6e3f439d8a Made thumbnail padding optional 2020-02-02 15:11:43 -08:00
Antoine Gersant
f41f45f600 Simplified error boilerplate 2020-01-04 16:42:28 -08:00
Antoine Gersant
82ea7983aa Instrument index duration 2019-09-02 14:28:25 -07:00
Laurențiu Nicola
6d963c059f Use 2018-style macro imports 2019-08-06 12:51:15 +03:00
Antoine Gersant
4b4ab8145c Rust 2018 2018-10-30 23:49:30 -07:00
Antoine Gersant
fdf40f2683 Removed outdated test 2018-10-30 23:47:29 -07:00
Antoine Gersant
a8a98fdd22 Removed iron 2018-10-28 17:27:47 -07:00
Antoine Gersant
0297b351bf Rustfmt 2018-10-06 15:46:30 -07:00
Antoine Gersant
66f59da7b2 Moved resident configuration from .toml file to database 2017-06-28 23:37:48 -07:00
Antoine Gersant
1d0b4929fd Use lowercase names on linux 2017-05-29 18:28:31 -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
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
f9a27895b4 Formatting 2016-12-21 07:05:16 +01: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
85f4492b92 Applied rustfmt 2016-11-30 23:16:06 -08:00
Antoine Gersant
a16595a2e1 Added unit tests to utils 2016-11-30 21:43:32 -08:00
Antoine Gersant
ee4a7f8f15 Store files in shared directory 2016-11-21 01:34:28 -08:00
Antoine Gersant
431852f1e0 Fixed config and cache files locations 2016-11-21 00:13:55 -08:00
Antoine Gersant
2150241ae1 rustfmt 2016-11-13 16:49:45 -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
c50e957932 Added jpeg to image extensions 2016-10-23 12:10:48 -07:00
Antoine Gersant
ebea771424 Removed unneeded returns 2016-10-23 12:10:31 -07:00
Antoine Gersant
61e4f6c7d2 Scaffholding for serving thumbnails 2016-10-23 12:07:37 -07:00