diff --git a/addon.xml b/addon.xml index 3f0bb7ba..3871f6a5 100644 --- a/addon.xml +++ b/addon.xml @@ -1,5 +1,5 @@ - + @@ -27,11 +27,9 @@ resources/media/themes/ss/2.png resources/media/themes/ss/3.png - - aggiunti nuovi canali: film4k, animealtadefinizione, streamingcommunity, animeuniverse , guardaserieICU -- HDmario ora supporta l'utilizzo di account -- Miglioramenti sezione news, è ora possibile raggruppare per canale o per contenuto, e settare l'ordinamento -- risolto il fastidioso problema per cui poteva capitare che la ricerca ripartisse dopo un refresh di kodi (tipicamente quando l'aggiornamento della videoteca finiva) -- alcuni fix ai canali + - completato il supporto al futuro Kodi 19 +- ridisegnato infoplus +- fix vari ed eventuali Naviga velocemente sul web e guarda i contenuti presenti [COLOR red]The owners and submitters to this addon do not host or distribute any of the content displayed by these addons nor do they have any affiliation with the content providers.[/COLOR] [COLOR yellow]Kodi © is a registered trademark of the XBMC Foundation. We are not connected to or in any other way affiliated with Kodi, Team Kodi, or the XBMC Foundation. Furthermore, any software, addons, or products offered by us will receive no support in official Kodi channels, including the Kodi forums and various social networks.[/COLOR] diff --git a/channels/animeunity.py b/channels/animeunity.py index e9e70610..064d834d 100644 --- a/channels/animeunity.py +++ b/channels/animeunity.py @@ -4,7 +4,8 @@ # ------------------------------------------------------------ import requests, json, copy -from core import support, autorenumber +from core import support +from platformcode import autorenumber try: from lib import cloudscraper except: from lib import cloudscraper diff --git a/channels/vvvvid.py b/channels/vvvvid.py index b227e2fa..bdfffca2 100644 --- a/channels/vvvvid.py +++ b/channels/vvvvid.py @@ -3,13 +3,8 @@ # Canale per vvvvid # ---------------------------------------------------------- import requests, sys -from core import support, tmdb, autorenumber - -if sys.version_info[0] >= 3: - pass -else: - pass - +from core import support, tmdb +from platformcode import autorenumber host = support.config.get_channel_url() diff --git a/core/tvdb.py b/core/tvdb.py index bd15e45d..674125a8 100644 --- a/core/tvdb.py +++ b/core/tvdb.py @@ -6,6 +6,10 @@ # Used to obtain series data for the video library # ------------------------------------------------------------ +import sys +if sys.version_info[0] >= 3: PY3 = True +else: PY3 = False + from future import standard_library standard_library.install_aliases() from future.builtins import object @@ -390,9 +394,11 @@ class Tvdb(object): url = HOST + "/login" params = {"apikey": apikey} + if PY3: params = jsontools.dump(params).encode() + else: params = jsontools.dump(params) try: - req = urllib.request.Request(url, data=jsontools.dump(params), headers=DEFAULT_HEADERS) + req = urllib.request.Request(url, data=params, headers=DEFAULT_HEADERS) response = urllib.request.urlopen(req) html = response.read() response.close()