mirror of
https://github.com/hyperion-project/hyperion.ng.git
synced 2023-10-10 13:36:59 +02:00
15 lines
259 B
Python
15 lines
259 B
Python
#!/usr/bin/env python
|
|
import json, sys
|
|
|
|
retval = 0
|
|
|
|
with open(sys.argv[1]) as f:
|
|
if len(sys.argv) < 3:
|
|
data = json.load(f)
|
|
sys.stdout.write(data['versionnr'])
|
|
sys.exit(0)
|
|
else:
|
|
data = json.load(f)
|
|
sys.stdout.write(data['channel'])
|
|
sys.exit(0)
|