This commit is contained in:
parent
9b36a2ed1e
commit
491f81dd2a
@ -140,8 +140,8 @@ class MainHandler(tornado.web.RequestHandler):
|
|||||||
video_info = VideoInfo()
|
video_info = VideoInfo()
|
||||||
video_info.ctype = provider_data.ctype()
|
video_info.ctype = provider_data.ctype()
|
||||||
if handler.direct:
|
if handler.direct:
|
||||||
video_info.upstream = provider_data.upstream()
|
video_info.upstream = str(provider_data.upstream())
|
||||||
video_info.poster = provider_data.thumbnail()
|
video_info.poster = str(provider_data.thumbnail())
|
||||||
else:
|
else:
|
||||||
proxied = await handler.proxy.proxy_url(
|
proxied = await handler.proxy.proxy_url(
|
||||||
[
|
[
|
||||||
@ -169,6 +169,14 @@ class MainHandler(tornado.web.RequestHandler):
|
|||||||
video_info.poster = proxied[2]
|
video_info.poster = proxied[2]
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
if video_info.upstream:
|
||||||
|
video_info.upstream = str(video_info.upstream)
|
||||||
|
if video_info.download:
|
||||||
|
video_info.download = str(video_info.download)
|
||||||
|
if video_info.poster:
|
||||||
|
video_info.poster = str(video_info.poster)
|
||||||
|
if video_info.ctype:
|
||||||
|
video_info.ctype = str(video_info.ctype)
|
||||||
dataclasses.asdict(video_info),
|
dataclasses.asdict(video_info),
|
||||||
provider_data.meta(),
|
provider_data.meta(),
|
||||||
provider_data.title(),
|
provider_data.title(),
|
||||||
|
Loading…
Reference in New Issue
Block a user