derp
All checks were successful
continuous-integration/drone Build is passing

This commit is contained in:
Roy Olav Purser 2023-07-07 20:40:36 +02:00
parent 491f81dd2a
commit 269ece679f
Signed by: roypur
GPG Key ID: 90142918D5E59AD3
3 changed files with 14 additions and 10 deletions

View File

@ -115,7 +115,9 @@ class ProxyElem:
try:
async with self.local() as session:
resp = await session.post(proxy_server, json=json.loads(request_data.json()))
resp = await session.post(
proxy_server, json=json.loads(request_data.json())
)
response_data = cast(
ProxyResponse, ProxyResponse.parse_raw(await resp.text())
)

View File

@ -168,15 +168,16 @@ class MainHandler(tornado.web.RequestHandler):
video_info.download = None
video_info.poster = proxied[2]
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)
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),
provider_data.meta(),
provider_data.title(),

View File

@ -9,6 +9,7 @@ import requests
import yt_dlp as youtube_dl
import config
class DummyLogger:
def debug(self, msg):
pass
@ -163,7 +164,7 @@ class StreamProvider:
proxies = {}
proxies["http"] = "socks5://" + self.proxy.proxy
proxies["https"] = "socks5://" + self.proxy.proxy
ctype = None
upstream = data.upstream()
try: