wrap thumbnail
This commit is contained in:
parent
c969a9a1ce
commit
7fe68c882e
@ -45,7 +45,7 @@ proxy_server = os.environ.get("PROXY_SERVER")
|
|||||||
@dataclasses.dataclass
|
@dataclasses.dataclass
|
||||||
class LinkWithType:
|
class LinkWithType:
|
||||||
upstream: str
|
upstream: str
|
||||||
ctype: str
|
ctype: None | str = None
|
||||||
|
|
||||||
|
|
||||||
class ProxyCreateLink(pydantic.BaseModel):
|
class ProxyCreateLink(pydantic.BaseModel):
|
||||||
|
@ -138,7 +138,9 @@ class MainHandler(tornado.web.RequestHandler):
|
|||||||
upstream=provider_data.upstream(),
|
upstream=provider_data.upstream(),
|
||||||
ctype=provider_data.proxy_ctype(),
|
ctype=provider_data.proxy_ctype(),
|
||||||
),
|
),
|
||||||
provider_data.thumbnail(),
|
config.LinkWithType(
|
||||||
|
upstream=provider_data.thumbnail(),
|
||||||
|
),
|
||||||
]
|
]
|
||||||
)
|
)
|
||||||
video_info["upstream"] = proxied[0]
|
video_info["upstream"] = proxied[0]
|
||||||
|
Loading…
Reference in New Issue
Block a user