Commit 7b0f1bfb authored by echel0n's avatar echel0n

Resolved issue with setting proxy address when global proxy configured.

parent d5cd1383
......@@ -17,7 +17,7 @@
# along with SiCKRAGE. If not, see <>.
import os
import ssl
from urllib.parse import splittype
from urllib.parse import urlparse
import certifi
import cfscrape
......@@ -35,9 +35,8 @@ from sickrage.core import helpers
def _add_proxies():
if"Using global proxy: " +
scheme, address = splittype(
address = ('http://{}'.format(,[scheme]
proxy = urlparse(
address = if proxy.scheme else 'http://{}'.format(
return {"http": address, "https": address}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment