add chromecast.css to sources.py

This commit is contained in:
Roy Olav Purser 2021-06-09 09:35:12 +02:00
parent 25270a11ed
commit b721dd451f
Signed by: roypur
GPG Key ID: E14D26A036F21656

View File

@ -38,6 +38,13 @@ try:
except Exception as e:
print(e)
else:
try:
resp = requests.get(f'https://cdn.jsdelivr.net/npm/@silvermine/videojs-chromecast@{chromecast_version}/dist/silvermine-videojs-chromecast.min.css')
except Exception as e:
print(e)
else:
with open("/app/chromecast.css", "w") as f:
f.write(resp.text)
with open("/app/version/chromecast.txt", "w") as f:
f.write(chromecast_version)