Commit graph

204 commits

Author SHA1 Message Date
Antoine Gersant
a229b03667 Updated version number 2024-02-03 04:27:47 +00:00
github-actions[bot]
bb11c80ebd
Merge 5ca38939bd into release 2024-02-03 04:27:44 +00:00
Antoine Gersant
6f24ff248f Depedency bumps 2023-09-08 19:34:39 -07:00
Antoine Gersant
608dabb789 Removed tokio dependency 2023-09-08 18:20:12 -07:00
Peder Bergebakken Sundt
8d38c5b664
id3: -> 1.4.0(git) -> 1.7.0 ()
This removes the git dep, which since rust 1.68.0 are not repoducible.
2023-06-17 18:12:58 -07:00
Antoine Gersant
4bb425f5c0 Updated version number 2022-11-25 04:30:06 +00:00
github-actions[bot]
add268a76f
Merge 46a232219d into release 2022-11-25 04:30:01 +00:00
Antoine Gersant
a8660793f8 Use TDOR frame for ID3v2 to populate year 2022-11-24 20:22:35 -08:00
Antoine Gersant
c57583d1d4 Removed anyhow dependency 2022-11-21 17:23:14 -08:00
Antoine Gersant
96d702b79e Improve build times 2022-11-10 01:56:46 -08:00
Tobias Schmitz
29ae862aad
Update dependencies ()
* update dependencies

* Upgrade rust edition to 2021

* make actix-test a dev-dependency
2022-11-08 19:54:24 -08:00
Antoine Gersant
63e971059a Removed deprecated authentication methods 2022-11-08 02:01:20 -08:00
Tobias Schmitz
f5a2eed423
Migrate to diesel 2.0 () 2022-08-30 11:47:16 -07:00
Tobias Schmitz
374d0ca56f
Migrate to actix-web 4 ()
* Migrate to actix-web 4

* Change expected swagger test status code

* update tokio to 1.0

* fix clippy warnings
2022-04-24 13:55:38 -07:00
Tobias Schmitz
90fd6bbcc9
Update dependencies () 2022-03-20 19:50:14 -07:00
Antoine Gersant
b6e9940c76 Updated id3 dependency 2021-11-10 19:47:45 -08:00
pmphfm
f104355076
Add few more fields to song information ()
* [meta] Add ignore paths to vscode settings

* [feature] Add few more fields to song information

Fields include lyricist, composer, genre, category
and label.
2021-05-20 22:08:43 -07:00
gahag
18a77d965f Updated version number 2021-04-25 05:08:29 +00:00
github-actions[bot]
765a5ae839
Merge ed581c57cf into release 2021-04-25 05:08:24 +00:00
gahag
ed581c57cf
Add support for AIFF files ()
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 ()
* 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
David Futcher
6c27409ef2
Bump rustfm-scrobble dependency to v1.1.1 () 2021-01-13 19:39:58 -08:00
Antoine Gersant
88431ccee4 Updated version number 2021-01-05 03:56:01 +00:00
Antoine Gersant
6afff1aaf3 Updated version number 2020-12-31 05:42:52 +00:00
github-actions[bot]
77b363a2ba
Merge 4ad8d922f7 into release 2020-12-31 05:42:48 +00:00
Antoine Gersant
4ad8d922f7
Platform-specific improvements ()
* Use native-windows-gui crate to manage tray icon
Adds log file support on Windows

* Log file location now works like other paths

* Removed context builder

* Context --> App

* Removed mount URLs from App

* Switch to a nicer crate for forking daemon

* Handle errors from notify_ready

* Add application icon to all Windows Polaris executables, not just those created by the release script

* Add build.rs to release tarball

* Create PID file parent directory if necessary
2020-12-30 21:41:57 -08:00
Antoine Gersant
7edcc38483
Test setup improvements ()
* 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
8c4a7d9401 Updated version number 2020-12-29 01:46:57 +00:00
github-actions[bot]
631db533c0
Merge 487d261843 into release 2020-12-29 01:46:52 +00:00
Antoine Gersant
487d261843 Removed unecessary dependency 2020-12-27 16:39:48 -08:00
Antoine Gersant
40d59e2191 Updated version number 2020-12-27 08:12:36 +00:00
github-actions[bot]
b3440fda1f
Merge ea7edea79b into release 2020-12-27 08:12:31 +00:00
Antoine Gersant
ea7edea79b Workaround for broken install paths on Windows 2020-12-27 00:10:57 -08:00
github-actions[bot]
a8c7509657
Merge 1d57691e8b into release 2020-12-21 02:09:51 +00:00
Antoine Gersant
72c8ed9289
Support for bearer token authentication ()
* User manager can create and recognize auth tokens

* Implement HTTP bearer auth

* Use bearer auth in test-harness

* Can receive auth token via query parameter (useful for media endpoints)
2020-12-20 03:25:45 -08:00
Antoine Gersant
c2807b60de
Replace rocket with actix-web ()
* Adds actix dependency

* Failed attempt at test harness using actix

* Fixed test panic

* Simplified tests

* Run web server in tests

* Send json payloads

* Static file serving

* Default shutdown timeout

* Implement version endpoint

* Implements #[get("/initial_setup")]

* WIP put_settings endpoint

* Adds AdminRights extractor

* Fixed a bug where AdminRights extractor always failed

* Implements collection endpoints

* Re-use system runnner between calls

* Preserve client headers between API calls (tentative)

* Fixed test interferences

* Implemented more endpoints

* Implemented audio file serving

* Fixed sketchy responses

* Implements thumbnail endpoint

* Login endpoint WIP

* Implement login endpoint

* Auth support

* When using HTTP headers to authenticate, response now includes expected cookies

* Tentative fix for server not responding within docker

* Adds logging middleware + browse troubleshooting

* Tentative fix for path decoding issues

* Tentative fix for broken path decoding

* Fix routing issues w/ paths

* Fixed a bug where auth cookies were sent in every response

* More lenient test timeouts

* Fixed a bug where recent/random endpoints required trailing slashes

* Compilation fix for rocket branch

* More useful test matrix

* Signed session cookies ()

* Isolate conflicting dependencies between rocket and actix versions

* Removed macOS from test matrix

* Glorious test harness simplification

* Removed RequestBuilder

* Shutdown on ctrl+c

* Pin to stable

* Drop rocket

* Simplify dependencies

* Removed stray rocket dependency

* Better test matrix

* Skip windows build without bundled sqlite

* Offload thumbnail creation to a thread pool

* Compress responses when possible

* Removed unused manage state

* Fixed a bug where large playlists could not be saved

* Return HTTP 401 for last fm requests without authentication

* Web block ()

* web::block around DB operations

* web::block during auth utils hitting DB

* Fixed incorrect http response code for missing thumbnail

* Removed unecessary unwrap

* Eliminated unecessary unwrap
2020-12-14 21:18:44 -08:00
Antoine Gersant
8daf8bc7ad Updated version number 2020-12-14 03:26:46 +00:00
Antoine Gersant
847d61f62b
One click release ()
* Make release from Github UI
2020-12-13 19:24:06 -08:00
Antoine Gersant
075a2953f8 Make release from Github UI 2020-12-13 18:54:25 -08:00
Antoine Gersant
9c45ad5238
Replace reqwest with ureq ()
* Replace reqwest with ureq

* Reqwest-free rustfm-scrobble
2020-12-13 15:53:31 -08:00
Antoine Gersant
866d82a16c
Make sqlite bundling optional ()
* Manually specify libsqlite version

* Make sqlite bundling optional

* Skip tests on windows without bundled sqlite
2020-12-08 01:22:17 -08:00
Antoine Gersant
55a4f64b3a
Bundle SQLite () 2020-12-08 00:14:16 -08:00
Antoine Gersant
5b412718dc Trim diesel features 2020-12-07 23:24:57 -08:00
Antoine Gersant
b678973ef0 Hand-picked subset of image features 2020-12-07 23:06:50 -08:00
Antoine Gersant
351f1b0768 Removed unused dependency 2020-12-07 22:51:36 -08:00
Antoine Gersant
2f67d280fa Removed now standard build-override (https://github.com/rust-lang/cargo/pull/8500) 2020-12-07 21:15:33 -08:00
Antoine Gersant
f03d12de3e Removed unused dependency 2020-12-07 20:10:10 -08:00
Antoine Gersant
b6c446fa02
Rewrote indexer ()
* 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
847c26ddfe
Service unit tests improvements ()
- Simpler API for TestService
- More granular tests
- Tests for authentication requirements
- Better error handling (and HTTP response codes) for various bad inputs
2020-11-30 01:26:55 -08:00
Antoine Gersant
538b41a2b4
Use standard directories when running on Linux ()
* 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