Commit Graph

58 Commits

Author SHA1 Message Date
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
Aleksander Wasaznik 3a329fe689 Implement title fetch in metadatafetch.py
A simple prototype for fetching the title of media using youtube-dl.
2017-02-05 15:59:23 +01:00
Aleksander Wasaznik 2466c20059 Create nyasync library
The library contains helpers for more ergonomic use of asyncio.
2017-02-05 15:59:23 +01:00
Aleksander Wasaznik f95dc7f3e4 Add skeleton asyncio launcher 2017-02-05 15:59:23 +01:00
Aleksander Wasaznik 5d2b56b015 Improve deploy script
The script now handles filenames with spaces and such. It also removes
any old files from previous deployment.
2017-02-05 15:59:23 +01:00
Peder Bergebakken Sundt c2ee159dde started work on playlist management 2017-02-05 15:16:00 +01:00
Aleksander Gustaw Wasaznik 0ac75ff93a Use tar to deploy 2016-09-13 21:13:46 +02:00
Aleksander Gustaw Wasaznik 7b85d39629 Make MPV use drm video output 2016-09-13 20:57:45 +02:00
Aleksander Gustaw Wasaznik a8ce8246b9 Merge branch 'master' of github.com:Programvareverkstedet/grzegorz 2016-09-13 20:53:14 +02:00
Aleksander Gustaw Wasaznik 21570efe67 Add deploy script 2016-09-13 20:52:06 +02:00
Peder Bergebakken Sundt 339256ff67 Introduced the mainfunction and configfile, and added the parameter --no-mpv 2016-09-12 02:12:11 +02:00