added video transitions, closes #4

This commit is contained in:
eximus
2017-09-17 17:33:11 +01:00
parent f2e160f4e0
commit f1dbb34d67
2 changed files with 120 additions and 53 deletions

View File

@@ -7,8 +7,10 @@ night=open("playlist_night.m3u", "w")
for x in json.load(sys.stdin):
for asset in x["assets"]:
if asset["timeOfDay"] == "night":
print "[+] night - " + asset["url"]
night.write(asset["url"]+"\n")
elif asset["timeOfDay"] == "day":
print "[+] day - " + asset["url"]
day.write(asset["url"]+"\n")
else:
print "Unknown time of day %s" % asset["timeOfDay"]