Display current music
All checks were successful
ci / deploy (push) Successful in 2m30s

This commit is contained in:
2026-01-21 00:37:15 +01:00
parent f397ec62ed
commit 8ca5deebb2
6 changed files with 145 additions and 34 deletions

14
met_extractor.py Executable file
View File

@@ -0,0 +1,14 @@
#!/usr/bin/env python3
import sys
import json
if len(sys.argv) < 2:
print(
"Usage: met_etractor.py <playlist.json> <key>"
)
print("Example: met_extractor.py /tmp/my_playlist.json key")
sys.exit(1)
with open(sys.argv[1], "r", encoding="utf-8") as f:
met = json.load(f)
print(json.dumps(met.get(sys.argv[2], {})))