From 7fe68c882ee274900b0f337db2fb3b7ad9e27293 Mon Sep 17 00:00:00 2001 From: Roy Olav Purser Date: Sat, 12 Feb 2022 14:01:30 +0100 Subject: [PATCH] wrap thumbnail --- backend/config.py | 2 +- backend/stream.py | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) 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]