Peder Bergebakken Sundt
1497e3e679
brrr
2022-08-27 22:35:14 +02:00
Peder Bergebakken Sundt
3e69ac3b91
Merge pull request #3 from Programvareverkstedet/dependabot/pip/sanic-21.12.2
...
Bump sanic from 21.12.1 to 21.12.2
2022-08-07 03:50:49 +02:00
dependabot[bot]
b5214948ab
Bump sanic from 21.12.1 to 21.12.2
...
Bumps [sanic](https://github.com/sanic-org/sanic ) from 21.12.1 to 21.12.2.
- [Release notes](https://github.com/sanic-org/sanic/releases )
- [Changelog](https://github.com/sanic-org/sanic/blob/main/CHANGELOG.rst )
- [Commits](https://github.com/sanic-org/sanic/compare/v21.12.1...v21.12.2 )
---
updated-dependencies:
- dependency-name: sanic
dependency-type: direct:production
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-08-06 05:24:17 +00:00
Peder Bergebakken Sundt
58a889b290
Merge pull request #2 from Programvareverkstedet/dependabot/pip/ujson-5.4.0
...
Bump ujson from 5.2.0 to 5.4.0
2022-07-06 13:34:09 +02:00
dependabot[bot]
9967d51648
Bump ujson from 5.2.0 to 5.4.0
...
Bumps [ujson](https://github.com/ultrajson/ultrajson ) from 5.2.0 to 5.4.0.
- [Release notes](https://github.com/ultrajson/ultrajson/releases )
- [Commits](https://github.com/ultrajson/ultrajson/compare/5.2.0...5.4.0 )
---
updated-dependencies:
- dependency-name: ujson
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-07-05 22:37:00 +00:00
Peder Bergebakken Sundt
d4345477ec
Merge pull request #1 from Programvareverkstedet/dependabot/pip/ujson-5.2.0
...
Bump ujson from 5.1.0 to 5.2.0
2022-05-29 17:11:43 +02:00
dependabot[bot]
9337b275e6
Bump ujson from 5.1.0 to 5.2.0
...
Bumps [ujson](https://github.com/ultrajson/ultrajson ) from 5.1.0 to 5.2.0.
- [Release notes](https://github.com/ultrajson/ultrajson/releases )
- [Commits](https://github.com/ultrajson/ultrajson/compare/5.1.0...5.2.0 )
---
updated-dependencies:
- dependency-name: ujson
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com>
2022-05-26 01:29:39 +00:00
Peder Bergebakken Sundt
8b42e27e33
MPV class cleanup
2022-02-19 23:04:29 +01:00
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