This commit is contained in:
parent
230f542b54
commit
4d9cca40e7
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user