Commit graph

16 commits

Author SHA1 Message Date
Markus Pettersson
ef7e431779 Clean up config.rs
Some refactoring to `config.rs` with the aim to:

* Increase type safety
* Reduce duplication
* Leverage `std::result::Result` & `std::path::PathBuf` APIs

To achieve these goals, the following was done:

* `get_config_file` propagates an `FF2MpvError` if the config file doesn't exist/is invalid
* Always type check `unix` & `windows` code by using `cfg!` expressions over
`#[cfg()]` attributes. This also removed some duplicated lines of code
* Move `#[serde(default)]` to `Config` struct instead of every struct
member: https://serde.rs/container-attrs.html#default
2023-10-29 20:04:15 +01:00
4fcc2ac31f Spawn player with CREATE_BREAKAWAY_FROM_JOB on Windows 2023-10-21 21:39:12 +03:00
4aa4ca5d8c
Add Cargo.lock. Fixes #4 2023-09-04 23:10:55 +03:00
d4a633468e
Merge pull request #2 from Gobbel2000/improvements
Send reply to browser and suppress output from mpv
2023-04-10 02:59:50 +03:00
Gabriel Vogel
3c9db73c54 Send correct reply and suppress mpv output
This prevents errors in the browser log
2023-04-09 16:50:42 +02:00
Gabriel Vogel
5d7c23124c Reenable send_reply
This reverts commit 36fb89b956
                and 76e8c0d8f2.
2023-04-09 16:33:29 +02:00
36fb89b956
Remove unused Write trait import 2023-03-14 22:19:07 +03:00
76e8c0d8f2
Remove unneccesary send_reply 2023-03-14 22:10:51 +03:00
43c3cae634
Version 1.1.0 2023-03-14 21:27:50 +03:00
d3b7e13a5a
Update README 2023-03-14 21:25:10 +03:00
78555c3d93
Added example configuration file 2023-03-14 21:22:54 +03:00
ab586ba197
Refactor, added config file for custom players and cli interface 2023-03-14 20:48:43 +03:00
7de78329fb
Make clippy happy 2023-03-14 14:25:43 +03:00
ab554ead23
Newlines at the end 2023-02-13 21:34:10 +03:00
72937872cd
Version 1.0.0 2023-02-13 21:20:26 +03:00
d1cacecb48
Initial commit 2023-02-13 21:14:26 +03:00