This commit is contained in:
		@@ -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())
 | 
			
		||||
                )
 | 
			
		||||
 
 | 
			
		||||
@@ -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(),
 | 
			
		||||
 
 | 
			
		||||
@@ -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:
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user