From b721dd451fad5d2cc899d3c42a37f04748fb9ea0 Mon Sep 17 00:00:00 2001 From: Roy Olav Purser Date: Wed, 9 Jun 2021 09:35:12 +0200 Subject: [PATCH] add chromecast.css to sources.py --- backend/sources.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/backend/sources.py b/backend/sources.py index b9bb2d9..c77d084 100755 --- a/backend/sources.py +++ b/backend/sources.py @@ -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)