Compare commits
3 Commits
master
...
danio-patc
| Author | SHA1 | Date | |
|---|---|---|---|
| 753cb87104 | |||
| 5c3df04b8d | |||
| f458e5c5b4 |
21
LICENSE
21
LICENSE
@@ -1,21 +0,0 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2025 Programvareverkstedet
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
@@ -2,7 +2,7 @@
|
||||
<img align="right" width="250" src="grzegorz/res/logo.png">
|
||||
|
||||
`grzegorz` is simple REST API for managing an instance of MPV.
|
||||
Why "Grzegorz"? [Great taste in humor of course!](https://www.youtube.com/watch?v=AfKZclMWS1U)
|
||||
Why "Grzegorz"? [Great taste in humor of course!](https://youtu.be/t-fcrn1Edik)
|
||||
|
||||
When `grzegorz` starts, it launches an instance of MPV and maintains it. It is designed to be used as an info screen or HTPC, and supports multiple users to push changes to the MPV instance.
|
||||
|
||||
@@ -13,7 +13,7 @@ The API is described and can be tested at `http:/localhost:8080/docs/swagger` wh
|
||||
|
||||
Gregorz manages a MPV process, meaning you need to have MPV installed on your system. Look for it in your package manager.
|
||||
|
||||
sudo pip install git+https://git.pvv.ntnu.no/Grzegorz/grzegorz#master
|
||||
sudo pip install git+https://github.com/Programvareverkstedet/grzegorz#master
|
||||
sanic grzegorz.app --host :: --port 8080
|
||||
|
||||
Details are over [here](https://sanic.dev/en/guide/deployment/running.html#running-via-command).
|
||||
|
||||
12
flake.lock
generated
12
flake.lock
generated
@@ -8,11 +8,11 @@
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1725463969,
|
||||
"narHash": "sha256-d3c1TAlIN1PtK+oQP1wO6XbDfmR4SUp/C/4s7G46ARo=",
|
||||
"lastModified": 1713887124,
|
||||
"narHash": "sha256-hGTSm0p9xXUYDgsAAr/ORZICo6T6u33vLfX3tILikaQ=",
|
||||
"owner": "GuillaumeDesforges",
|
||||
"repo": "fix-python",
|
||||
"rev": "2926402234c3f99aa8e4608c51d9ffa73ea403c0",
|
||||
"rev": "f7f4b33e22414071fc1f9cbf68072c413c3a7fdf",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
@@ -40,11 +40,11 @@
|
||||
},
|
||||
"nixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 1726755586,
|
||||
"narHash": "sha256-PmUr/2GQGvFTIJ6/Tvsins7Q43KTMvMFhvG6oaYK+Wk=",
|
||||
"lastModified": 1715266358,
|
||||
"narHash": "sha256-doPgfj+7FFe9rfzWo1siAV2mVCasW+Bh8I1cToAXEE4=",
|
||||
"owner": "NixOS",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "c04d5652cfa9742b1d519688f65d1bbccea9eb7e",
|
||||
"rev": "f1010e0469db743d14519a1efd37e23f8513d714",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
||||
@@ -26,10 +26,9 @@ class MPV:
|
||||
return [
|
||||
'mpv',
|
||||
f'--input-ipc-server={str(cls._ipc_endpoint)}',
|
||||
'--pipewire-remote=/run/user/1003/pipewire-0', # Cage doesn't set up XDG variables properly?
|
||||
'--idle',
|
||||
'--force-window',
|
||||
*(('--fullscreen',) if not IS_DEBUG else ()),
|
||||
'--ytdl-format=bestvideo[height<=?1080]',
|
||||
'--no-terminal',
|
||||
'--load-unsafe-playlists',
|
||||
'--keep-open', # Keep last frame of video on end of video
|
||||
|
||||
949
poetry.lock
generated
949
poetry.lock
generated
File diff suppressed because it is too large
Load Diff
@@ -9,7 +9,7 @@ license = "MIT"
|
||||
python = ">=3.8,<4.0"
|
||||
mpv = ">=0.1" # TODO: do we use this?
|
||||
yt-dlp = ">=2023.9.24"
|
||||
sanic = ">=23.12.0,<25"
|
||||
sanic = ">=23.12.0,<24"
|
||||
sanic-ext = ">=23.12.0,<24"
|
||||
#sanic-openapi = ">=21.6.1"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user