diff --git a/backend/config.py b/backend/config.py index 41f1149..8be2e04 100644 --- a/backend/config.py +++ b/backend/config.py @@ -45,7 +45,7 @@ proxy_server = os.environ.get("PROXY_SERVER") @dataclasses.dataclass class LinkWithType: upstream: str - ctype: str + ctype: None | str = None class ProxyCreateLink(pydantic.BaseModel): diff --git a/backend/stream.py b/backend/stream.py index 0197c3b..a73039b 100755 --- a/backend/stream.py +++ b/backend/stream.py @@ -138,7 +138,9 @@ class MainHandler(tornado.web.RequestHandler): upstream=provider_data.upstream(), ctype=provider_data.proxy_ctype(), ), - provider_data.thumbnail(), + config.LinkWithType( + upstream=provider_data.thumbnail(), + ), ] ) video_info["upstream"] = proxied[0]