fix aggiornamento videoteca in caso di cambio dominio

This commit is contained in:
Alhaziel01
2020-12-16 12:57:11 +01:00
parent b07dc69a90
commit 1b3b67c4dd
2 changed files with 8 additions and 1 deletions

View File

@@ -224,7 +224,7 @@ def get_nfo(item):
return info_nfo
else:
return scraper.get_nfo(item)
return ''
def sort_episode_list(episodelist):

View File

@@ -8,6 +8,11 @@ import traceback
import xbmc
import xbmcgui
from platformcode import config
try:
from urllib.parse import urlsplit
except ImportError:
from urlparse import urlsplit
# on kodi 18 its xbmc.translatePath, on 19 xbmcvfs.translatePath
try:
import xbmcvfs
@@ -38,6 +43,8 @@ def update(path, p_dialog, i, t, serie, overwrite):
# logger.debug("%s: %s" %(serie.contentSerieName,str(list_canales) ))
for channel, url in serie.library_urls.items():
serie.channel = channel
module = __import__('channels.%s' % channel, fromlist=["channels.%s" % channel])
url = module.host + urlsplit(url).path
serie.url = url
###### Redirección al canal NewPct1.py si es un clone, o a otro canal y url si ha intervención judicial