- commit
- e6ac3d1e27a398c85b64b33f8b17f5aa2ccfaeda
- parent
- 47ad90a27bfaf2f8b925b05225f5cc84f2c31378
- Author
- Tobias Bengfort <tobias.bengfort@posteo.de>
- Date
- 2024-10-19 07:45
mpv version: strip leading v see https://github.com/x64k/cplay-ng/commit/1759f221a98bd19d909b347f128fa3b9d06cdfc7
Diffstat
| M | cplay.py | 2 | +- |
1 files changed, 1 insertions, 1 deletions
diff --git a/cplay.py b/cplay.py
@@ -96,7 +96,7 @@ def get_socket(path): 96 96 @functools.cache 97 97 def get_mpv_version(): 98 98 p = subprocess.run(['mpv', '--version'], stdout=subprocess.PIPE)99 -1 s = p.stdout.split(b' ', 2)[1].decode()-1 99 s = p.stdout.split(b' ', 2)[1].decode().lstrip('v') 100 100 return tuple(int(i) for i in s.split('.')) 101 101 102 102