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

This commit is contained in:
Roy Olav Purser 2022-04-03 13:51:24 +02:00
parent 230f542b54
commit 4d9cca40e7
Signed by: roypur
GPG Key ID: E14D26A036F21656

View File

@ -1,16 +1,13 @@
import youtube_dl
import streamlink
import requests
import asyncio
import html.parser
import urllib.parse
import expiringdict
import subprocess
import json
import re
import config
import asyncio
import expiringdict
import requests
import youtube_dl
import config
class DummyLogger:
def debug(self, msg):
@ -165,6 +162,8 @@ class StreamProvider:
proxies = {}
proxies["http"] = "socks5://" + self.proxy.proxy
proxies["https"] = "socks5://" + self.proxy.proxy
self.logger.info("%s <%s>", proxies, self.upstream)
ctype = None
upstream = data.upstream()
try:
@ -204,6 +203,7 @@ class StreamProvider:
class StreamlinkRunner(StreamProvider):
def stream(self):
try:
self.logger.info("%s <%s>", self.proxy, self.upstream)
session = None
if self.proxy is None or self.proxy.proxy is None:
session = config.streamlink_default_session