From 4d9cca40e795e4d9ce82a4c77add0dd6b9851ded Mon Sep 17 00:00:00 2001 From: Roy Olav Purser Date: Sun, 3 Apr 2022 13:51:24 +0200 Subject: [PATCH] log proxy --- backend/stream_providers.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/backend/stream_providers.py b/backend/stream_providers.py index db964a8..7401f3d 100755 --- a/backend/stream_providers.py +++ b/backend/stream_providers.py @@ -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