wrap thumbnail

This commit is contained in:
Roy Olav Purser 2022-02-12 14:01:30 +01:00
parent c969a9a1ce
commit 7fe68c882e
Signed by: roypur
GPG Key ID: E14D26A036F21656
2 changed files with 4 additions and 2 deletions

View File

@ -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):

View File

@ -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]