Commit Graph

68 Commits

Author SHA1 Message Date
Peder Bergebakken Sundt fc33b9e1ae Add direnv shorthands, minor cleanup 2022-02-19 23:04:14 +01:00
Peder Bergebakken Sundt 64d7031711 Track and lock dependencies with poetry 2022-02-19 23:03:34 +01:00
Peder Bergebakken Sundt b9968d88e3 cleanup and type hints 2022-02-19 23:00:44 +01:00
Peder Bergebakken Sundt 1b9c723e06 remove grzegorz.jpg from initial playlist 2021-08-19 22:45:50 +02:00
Peder Bergebakken Sundt d4a3365343 fix restricted async python3 contextmanager syntax 2021-08-19 22:45:41 +02:00
Peder Bergebakken Sundt 904209587d fix mpv call 2021-08-19 22:45:24 +02:00
Peder Bergebakken Sundt b14a4e0fd6 update sanic 2021-08-19 22:45:14 +02:00
Peder Bergebakken Sundt 37a832290e Add ability to go to specific position in the playlist 2019-03-13 12:10:29 +01:00
Peder Bergebakken Sundt cced6f8772 Add support for looping the playlist 2019-03-13 11:26:54 +01:00
Peder Bergebakken Sundt ebc04f3c07 Allow unlisted playlists 2019-03-13 11:25:39 +01:00
Peder Bergebakken Sundt 1440c5bdb6 Fix metadata fetch logic issues and typos 2019-03-13 11:25:08 +01:00
Peder Bergebakken Sundt 9abbebedb0 Fix typo in readme 2019-03-13 11:23:17 +01:00
Peder Bergebakken Sundt 62feb07233 Whoops, fixed the xorg service file 2019-03-09 21:27:12 +01:00
Peder Bergebakken Sundt e7b711b3ad Move config.py to default_config.py and make deplay.bash not delete config.py on the remote 2018-04-12 19:03:36 +02:00
Peder Bergebakken Sundt 1fc1ab2e1d Prettify and clarify the README 2018-03-06 17:18:17 +01:00
Peder Bergebakken Sundt a9129b197a Expand PlaylistDataCache to automatically fetch missing metadata
This is only used if the constructor kwarg "auto_fetch_data" evaluates to True
2018-03-05 23:15:01 +01:00
Peder Bergebakken Sundt 33be49d2d3 Fix bug in nyasync where it would use the asyncio event loop set at function define time 2018-03-05 23:12:07 +01:00
Peder Bergebakken Sundt 52245b1256 Fix typos in README 2018-03-05 23:11:55 +01:00
Peder Bergebakken Sundt 1c7116fd75 Add readme and dist setup 2018-03-04 18:29:08 +01:00
Peder Bergebakken Sundt 86c830b655 Remove dead code
Was supposed to become a api endpoint, but was merged into api.time_set in an earlier commit
2018-03-04 15:27:20 +01:00
Peder Bergebakken Sundt 422fa5bb4c Add api.playlist_shuffle 2018-03-04 15:25:39 +01:00
Peder Bergebakken Sundt 3ce1008db6 Add api.playlist_move 2018-03-04 15:25:19 +01:00
Peder Bergebakken Sundt 0b64705fdb Implement api.playlist_remove_or_clear
It handles both mpv_control.playlist_remove and mpv_control.playlist_clear
2018-03-04 15:06:21 +01:00
Peder Bergebakken Sundt 6388a8bfc3 Add proper errorhandling and returnvalues to MPVControl shorthand methods 2018-03-04 14:24:41 +01:00
Peder Bergebakken Sundt 22c363a788 Add PlaylistDataCache
PlaylistDataCache stores arbitrary data supplied by the client while issuing a loadfile command
The contents of this cache matches with filenames and returns its matched content when any user fetches the playlist
This is mainly used to store metadata.
Could be expanded to having the api automatically fetch the metadata using youtube-dl or something
2018-03-04 03:54:29 +01:00
Peder Bergebakken Sundt c0c29974d3 Add ability to seek 2018-02-28 22:18:22 +01:00
Peder Bergebakken Sundt 6b88676dc4 Add index to playlist and make play_set better 2018-02-28 21:06:28 +01:00
Peder Bergebakken Sundt 92fcac7689 Add openapi description 2018-02-25 02:40:58 +01:00
Peder Bergebakken Sundt de4ce78bad Make __init__ produce a sanic app object instead of simply blocking as main()
Moved test() coro to main.py outside of grzegors module
2018-02-25 00:18:05 +01:00
Peder Bergebakken Sundt 710d207dbd Ensure "playing" in playlist_get() is true
This must be a bug in MPV
2018-02-24 23:40:08 +01:00
Peder Bergebakken Sundt bca1ec78b3 Rename rest methods, edit /load input from body to form argument, add error handling for api input 2018-02-24 23:35:06 +01:00
Peder Bergebakken Sundt 226e807f24 Add volume control, errorhandling and MPVError exception class 2018-02-24 23:17:05 +01:00
Peder Bergebakken Sundt 7f6b9fcba9 Implement mpv play/pause, next, previous and get playlist 2018-02-24 21:31:52 +01:00
Peder Bergebakken Sundt 577959432b Add status check in deployment script 2018-02-24 21:30:43 +01:00
Peder Bergebakken Sundt bf9503e43a Add route bases for all MPVControl shorthand command requests in API
This is not yet useable by any means
2018-02-17 00:12:11 +01:00
Peder Bergebakken Sundt 1744da9158 Add more shorthand command requests to MPVControl
Most of these are untested...
2018-02-17 00:05:58 +01:00
Peder Bergebakken Sundt 14806b42fb Add basic sanic setup to use for REST api 2018-02-16 23:19:50 +01:00
Peder Bergebakken Sundt 4f7aebd6fb Add cleanup in MPV class and shorthand command method in MPVControl 2018-02-16 23:18:19 +01:00
Peder Bergebakken Sundt 694f7aab11 Fix spelling 2018-02-16 23:16:34 +01:00
Peder Bergebakken Sundt aac11e7d54 Remove all REMI related things 2018-02-16 17:48:11 +01:00
Peder Bergebakken Sundt 732b4a0d07 Set remi to v1.0 2018-02-16 17:21:57 +01:00
Aleksander Wasaznik 204d062ae0 Add a main.py file for running the module 2017-02-06 20:30:29 +01:00
Aleksander Wasaznik ce6f6235d1 Implement a basic MPV controller
Raw commands are supported. Events not yet.
2017-02-06 20:30:29 +01:00
Aleksander Wasaznik 3398af9888 Remove the type odd annotation from playlistmanage 2017-02-06 20:30:29 +01:00
Aleksander Wasaznik 2b33f51053 Use asyncio.gather instead of asyncio.wait
asyncio.gather immediatly propagates exceptions, which is nice for
debugging, and what we wanted in the first place.
2017-02-06 20:30:29 +01:00
Aleksander Wasaznik 2f130874f7 Update deploy to match new systemd setup
Grezgorz now runs as a service on the user instance of systemd.
2017-02-06 20:30:29 +01:00
Peder Bergebakken Sundt 1fc402d911 Merge branch 'master' of https://github.com/Programvareverkstedet/grzegorz 2017-02-05 17:11:18 +01:00
Peder Bergebakken Sundt f39f215c5a updated server.py to use the newest version of REMI and added a nice PVV logo in the background 2017-02-05 17:10:50 +01:00
Aleksander Wasaznik bc54eb3f6b Add singleton playlist manager
Currently implemented is queing, dequening, and automatic title fetch
using metadatafetch.
2017-02-05 16:30:18 +01:00
Aleksander Wasaznik f58217d0cb Add missing async in UnixConnection in nyasync 2017-02-05 16:28:40 +01:00