Skip to content

Commit

Permalink
Remove (repetitive) log messages
Browse files Browse the repository at this point in the history
  • Loading branch information
dagwieers committed Mar 22, 2019
1 parent 624ad64 commit 4e610b7
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions plugin.video.vrt.nu/resources/lib/kodiwrappers/kodiwrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,6 @@ def get_global_setting(self, setting):
def get_proxies(self):
usehttpproxy = self.get_global_setting('network.usehttpproxy')
if usehttpproxy is False:
self.log_notice('Proxy is disabled in Kodi')
return dict()

httpproxytype = self.get_global_setting('network.httpproxytype')
Expand All @@ -124,7 +123,6 @@ def get_proxies(self):

if httpproxyserver and httpproxyport and httpproxyusername and httpproxypassword:
proxy_address = '%s://%s:%s@%s:%s' % (httpproxyscheme, httpproxyusername, httpproxypassword, httpproxyserver, httpproxyport)
proxy_address_redacted = '%s://%s:%s@%s:%s' % (httpproxyscheme, httpproxyusername, '****', httpproxyserver, httpproxyport)
elif httpproxyserver and httpproxyport and httpproxyusername:
proxy_address = '%s://%s@%s:%s' % (httpproxyscheme, httpproxyusername, httpproxyserver, httpproxyport)
elif httpproxyserver and httpproxyport:
Expand All @@ -134,11 +132,6 @@ def get_proxies(self):
else:
return dict()

if not httpproxypassword:
proxy_address_redacted = proxy_address

self.log_notice("Using proxy address '%s'" % proxy_address_redacted)

return dict(http=proxy_address, https=proxy_address)

# NOTE: normally inputstream adaptive will always be installed, this only applies for people uninstalling inputstream adaptive while this addon is disabled
Expand Down

0 comments on commit 4e610b7

Please sign in to comment.