Spiffytitles: Format proxy as URL

This commit is contained in:
Gordon Shumway 2021-08-20 15:32:21 -04:00 committed by GitHub
parent 6f90754be9
commit d93428af0d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -69,8 +69,8 @@ class SpiffyTitles(callbacks.Plugin):
self.proxies["https"] = None
proxy = str(conf.supybot.protocols.http.proxy)
if proxy:
self.proxies["http"] = proxy
self.proxies["https"] = proxy
self.proxies["http"] = "http://{0}".format(proxy)
self.proxies["https"] = "https://{0}".format(proxy)
def add_handlers(self):
"""