diff options
author | Rechi <Rechi@users.noreply.github.com> | 2018-11-16 10:20:22 +0100 |
---|---|---|
committer | Rechi <Rechi@users.noreply.github.com> | 2018-11-16 10:20:22 +0100 |
commit | df430fb93e92652176688eecf4eb1cc4bc23df7f (patch) | |
tree | 271d8feb38e6a4271665a0e665a488856f6c4c3b /addons | |
parent | d99f45cd825ec04d1c9fbabcf953e770ad77a4ed (diff) |
[addons] sync with repo
Diffstat (limited to 'addons')
-rw-r--r-- | addons/metadata.tvdb.com/addon.xml | 2 | ||||
-rw-r--r-- | addons/metadata.tvdb.com/changelog.txt | 3 | ||||
-rw-r--r-- | addons/metadata.tvdb.com/tvdb.xml | 24 | ||||
-rw-r--r-- | addons/service.xbmc.versioncheck/addon.xml | 2 | ||||
-rw-r--r-- | addons/service.xbmc.versioncheck/resources/language/English/strings.po | 14 | ||||
-rw-r--r-- | addons/service.xbmc.versioncheck/resources/versions.txt | 16 | ||||
-rw-r--r-- | addons/service.xbmc.versioncheck/service.py | 23 |
7 files changed, 75 insertions, 9 deletions
diff --git a/addons/metadata.tvdb.com/addon.xml b/addons/metadata.tvdb.com/addon.xml index ad186db03d..da501cc5fa 100644 --- a/addons/metadata.tvdb.com/addon.xml +++ b/addons/metadata.tvdb.com/addon.xml @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <addon id="metadata.tvdb.com" name="The TVDB" - version="3.0.12" + version="3.0.13" provider-name="Team Kodi"> <requires> <import addon="xbmc.metadata" version="2.1.0"/> diff --git a/addons/metadata.tvdb.com/changelog.txt b/addons/metadata.tvdb.com/changelog.txt index 6418f6b457..e7775dd402 100644 --- a/addons/metadata.tvdb.com/changelog.txt +++ b/addons/metadata.tvdb.com/changelog.txt @@ -1,3 +1,6 @@ +[B]3.0.13[/B] +- Added: Support slug URLs in nfo files + [B]3.0.12[/B] - Fixed: DVD and Absolute episode ordering fixes diff --git a/addons/metadata.tvdb.com/tvdb.xml b/addons/metadata.tvdb.com/tvdb.xml index 763fda8933..6732f87084 100644 --- a/addons/metadata.tvdb.com/tvdb.xml +++ b/addons/metadata.tvdb.com/tvdb.xml @@ -11,9 +11,15 @@ <RegExp input="$$1" output="tt\1" dest="7"> <expression>imdb\....?/title\?([0-9]*)</expression> </RegExp> - <RegExp input="$$7" output="<details><url function="GetTVDBId" post="yes" cache="auth.json">https://api.thetvdb.com/login?{"apikey":"439DFEBA9D3059C6"}|Content-Type=application/json</url></details>" dest="3"> + <RegExp input="$$7" output="<details><url function="GetTVDBIdByIMDBId" post="yes" cache="auth.json">https://api.thetvdb.com/login?{"apikey":"439DFEBA9D3059C6"}|Content-Type=application/json</url></details>" dest="3"> <expression>(?!^$)</expression> </RegExp> + <RegExp input="$$1" output="\1" dest="7"> + <expression clear="yes">https?://(?:www\.)?thetvdb.com/series/([^\s]+)</expression> + </RegExp> + <RegExp input="$$7" output="<details><url function="GetTVDBIdBySlug" post="yes" cache="auth.json">https://api.thetvdb.com/login?{"apikey":"439DFEBA9D3059C6"}|Content-Type=application/json</url></details>" dest="3"> + <expression>(?!^$)(.*)</expression> + </RegExp> <RegExp input="$$1" output="\1" dest="6"> <expression clear="yes">https?://(?:www\.)?thetvdb.com/(?:index\.php)?\?tab=series&id=([0-9]+)</expression> </RegExp> @@ -22,23 +28,31 @@ </RegExp> </NfoUrl> <NfoUrlAuth dest="3" clearbuffers="no"> - <RegExp input="$$19" output="<details><url cache="$$6-$INFO[language].xml">https://api.thetvdb.com/series/$$6|Authorization=Bearer%20\1&accept-language=$INFO[language]</url><id>$$6</id></details>" dest="3"> + <RegExp input="$$19" output="<details><url cache="$$6-$INFO[language].json">https://api.thetvdb.com/series/$$6|Authorization=Bearer%20\1&accept-language=$INFO[language]</url><id>$$6</id></details>" dest="3"> <RegExp input="$$1" output="\1" dest="19"> <expression>"token":\s*?"(.*)"</expression> </RegExp> <expression noclean="1"/> </RegExp> </NfoUrlAuth> - <GetTVDBId dest="3" clearbuffers="no"> + <GetTVDBIdByIMDBId dest="3" clearbuffers="no"> <RegExp input="$$19" output="<details><url function="GetTVDBIdAuth" cache="search-$$7-$INFO[language].json">https://api.thetvdb.com/search/series?imdbId=$$7|Authorization=Bearer%20\1&accept-language=$INFO[language]</url></details>" dest="3"> <RegExp input="$$1" output="\1" dest="19"> <expression>"token":\s*?"(.*)"</expression> </RegExp> <expression noclean="1"/> </RegExp> - </GetTVDBId> + </GetTVDBIdByIMDBId> + <GetTVDBIdBySlug dest="3" clearbuffers="no"> + <RegExp input="$$19" output="<details><url function="GetTVDBIdAuth" cache="search-$$7-$INFO[language].json">https://api.thetvdb.com/search/series?slug=$$7|Authorization=Bearer%20\1&accept-language=$INFO[language]</url></details>" dest="3"> + <RegExp input="$$1" output="\1" dest="19"> + <expression>"token":\s*?"(.*)"</expression> + </RegExp> + <expression noclean="1"/> + </RegExp> + </GetTVDBIdBySlug> <GetTVDBIdAuth dest="3" clearbuffers="no"> - <RegExp input="$$1" output="<details><url cache="\1-$INFO[language].xml">https://api.thetvdb.com/series/\1|Authorization=Bearer%20$$19&accept-language=$INFO[language]</url><id>\1</id></details>" dest="3"> + <RegExp input="$$1" output="<details><url cache="\1-$INFO[language].json">https://api.thetvdb.com/series/\1|Authorization=Bearer%20$$19&accept-language=$INFO[language]</url><id>\1</id></details>" dest="3"> <expression>"id":\s*?(\d+),</expression> </RegExp> </GetTVDBIdAuth> diff --git a/addons/service.xbmc.versioncheck/addon.xml b/addons/service.xbmc.versioncheck/addon.xml index 1184bd71c5..e30d70bdd2 100644 --- a/addons/service.xbmc.versioncheck/addon.xml +++ b/addons/service.xbmc.versioncheck/addon.xml @@ -1,7 +1,7 @@ <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <addon id="service.xbmc.versioncheck" name="Version Check" - version="0.3.27" + version="0.4.1" provider-name="Team Kodi"> <requires> <import addon="xbmc.python" version="2.1.0"/> diff --git a/addons/service.xbmc.versioncheck/resources/language/English/strings.po b/addons/service.xbmc.versioncheck/resources/language/English/strings.po index c8710afdd6..6746418c5c 100644 --- a/addons/service.xbmc.versioncheck/resources/language/English/strings.po +++ b/addons/service.xbmc.versioncheck/resources/language/English/strings.po @@ -111,3 +111,17 @@ msgstr "" msgctxt "#32035" msgid "It is recommended that you to upgrade to a newer version." msgstr "" + +#empty strings from id 32036 to 32039 + +msgctxt "#32040" +msgid "Your version %s of the Python cryptography module is too old. You need at least version 1.7." +msgstr "" + +msgctxt "#32041" +msgid "Please upgrade your operating system." +msgstr "" + +msgctxt "#32042" +msgid "For more information, see https://kodi.wiki/view/Linux" +msgstr "" diff --git a/addons/service.xbmc.versioncheck/resources/versions.txt b/addons/service.xbmc.versioncheck/resources/versions.txt index 6dea1f5242..5556b58198 100644 --- a/addons/service.xbmc.versioncheck/resources/versions.txt +++ b/addons/service.xbmc.versioncheck/resources/versions.txt @@ -397,6 +397,22 @@ "major": "18", "minor": "0", "tag": "beta", + "tagversion":"5", + "revision": "20181103-920e823249", + "addon_support": "yes" + }, + { + "major": "18", + "minor": "0", + "tag": "beta", + "tagversion":"4", + "revision": "20181023-c77874c5bf", + "addon_support": "yes" + }, + { + "major": "18", + "minor": "0", + "tag": "beta", "tagversion":"3", "revision": "20181002-c2e1b316f5", "addon_support": "yes" diff --git a/addons/service.xbmc.versioncheck/service.py b/addons/service.xbmc.versioncheck/service.py index 7f85bedefe..86bbdd5e53 100644 --- a/addons/service.xbmc.versioncheck/service.py +++ b/addons/service.xbmc.versioncheck/service.py @@ -19,8 +19,9 @@ import platform import xbmc +import xbmcgui import lib.common -from lib.common import log, dialog_yesno +from lib.common import log, dialog_yesno, localise from lib.common import upgrade_message as _upgrademessage from lib.common import upgrade_message2 as _upgrademessage2 @@ -102,9 +103,27 @@ def _versionchecklinux(packages): log("Unsupported platform %s" %platform.dist()[0]) sys.exit(0) - +# Python cryptography < 1.7 (still shipped with Ubuntu 16.04) has issues with +# pyOpenSSL integration, leading to all sorts of weird bugs - check here to save +# on some troubleshooting. This check may be removed in the future (when switching +# to Python3?) +# See https://github.com/pyca/pyopenssl/issues/542 +def _checkcryptography(): + ver = None + try: + import cryptography + ver = cryptography.__version__ + except: + # If the module is not found - no problem + return + + ver_parts = list(map(int, ver.split('.'))) + if len(ver_parts) < 2 or ver_parts[0] < 1 or (ver_parts[0] == 1 and ver_parts[1] < 7): + log('Python cryptography module version %s is too old, at least version 1.7 needed' % ver) + xbmcgui.Dialog().ok(ADDONNAME, localise(32040) % ver, localise(32041), localise(32042)) if (__name__ == "__main__"): + _checkcryptography() if ADDON.getSetting("versioncheck_enable") == "false": log("Disabled") else: |