Skip to content

Commit

Permalink
Add warning related to SOCKS proxy support
Browse files Browse the repository at this point in the history
SOCKS proxy support requires the requests[socks] library which is
currently unavailable on standard Kodi repositories.
  • Loading branch information
dagwieers committed Mar 23, 2019
1 parent 4e610b7 commit 308934d
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,14 @@ msgctxt "#32054"
msgid "Woops something went wrong, check the log for more details"
msgstr "Woops something went wrong, check the log for more details"

msgctxt "#32061"
msgid "SOCKS proxies are currently unsupported"
msgstr "SOCKS proxies are currently unsupported"

msgctxt "#32062"
msgid "Using a SOCKS proxy requires the requests[socks] library installed."
msgstr "Using a SOCKS proxy requires the requests[socks] library installed."

msgctxt "#32080"
msgid "A-Z"
msgstr "A-Z"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,14 @@ msgctxt "#32054"
msgid "Woops something went wrong, check the log for more details"
msgstr "Oeps, er ging iets mis, check de log voor meer informatie"

msgctxt "#32061"
msgid "SOCKS proxies are currently unsupported"
msgstr "SOCKS proxies zijn momenteel niet ondersteund"

msgctxt "#32062"
msgid "Using a SOCKS proxy requires the requests[socks] library installed."
msgstr "Het gebruik van SOCKS proxies vereist dat de requests[socks] library geïnstalleerd is."

msgctxt "#32080"
msgid "A-Z"
msgstr "A-Z"
Expand Down
15 changes: 10 additions & 5 deletions plugin.video.vrt.nu/resources/lib/kodiwrappers/kodiwrapper.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,15 +103,20 @@ def get_proxies(self):

httpproxytype = self.get_global_setting('network.httpproxytype')

if httpproxytype == '0':
if httpproxytype != 0:
title = self._kodi_wrapper.get_localized_string(32061)
message = self._kodi_wrapper.get_localized_string(32062)
self._kodi_wrapper.show_ok_dialog(title, message)

if httpproxytype == 0:
httpproxyscheme = 'http'
elif httpproxytype == '1':
elif httpproxytype == 1:
httpproxyscheme = 'socks4'
elif httpproxytype == '2':
elif httpproxytype == 2:
httpproxyscheme = 'socks4a'
elif httpproxytype == '3':
elif httpproxytype == 3:
httpproxyscheme = 'socks5'
elif httpproxytype == '4':
elif httpproxytype == 4:
httpproxyscheme = 'socks5h'
else:
httpproxyscheme = 'http'
Expand Down

0 comments on commit 308934d

Please sign in to comment.