Fix TMDB con selezione Numerazione

This commit is contained in:
Alhaziel01
2021-02-02 12:08:41 +01:00
parent 058b3ed507
commit a9c6dac6f4
6 changed files with 170 additions and 2 deletions
+3 -2
View File
@@ -547,8 +547,9 @@ def get_nfo(item, search_groups=False):
if groups:
Id = select_group(groups)
if Id:
info_nfo = 'https://www.themoviedb.org/tv/{}/episode_group/{}'.format(item.infoLabels['tmdb_id'], Id)
info_nfo = 'https://www.themoviedb.org/tv/{}/episode_group/{}\n'.format(item.infoLabels['tmdb_id'], Id)
return info_nfo
else: return
if "season" in item.infoLabels and "episode" in item.infoLabels:
info_nfo = "https://www.themoviedb.org/tv/%s/season/%s/episode/%s\n" % (item.infoLabels['tmdb_id'], item.contentSeason, item.contentEpisodeNumber)
@@ -576,7 +577,7 @@ def select_group(groups):
selections.append(name)
ids.append(ID)
if selections and ids:
selected = platformtools.dialog_select('Seleziona', selections)
selected = platformtools.dialog_select_group(config.get_localized_string(70831), selections)
if selected > -1:
return ids[selected]
return ''
+2
View File
@@ -500,6 +500,8 @@ def save_tvshow(item, episodelist, silent=False):
# We create tvshow.nfo, if it does not exist, with the head_nfo, series info and watched episode marks
logger.debug("Creating tvshow.nfo: " + tvshow_path)
head_nfo = scraper.get_nfo(item, search_groups=True)
if not head_nfo:
return 0, 0, 0, path
item.infoLabels['mediatype'] = "tvshow"
item.infoLabels['title'] = item.contentSerieName
item_tvshow = Item(title=item.contentSerieName, channel="videolibrary", action="get_seasons",