Altro Fix TMDB e Autorenumber
This commit is contained in:
+2
-1
@@ -537,7 +537,8 @@ def get_nfo(item, search_groups=False):
|
|||||||
if groups:
|
if groups:
|
||||||
Id = select_group(groups, item)
|
Id = select_group(groups, item)
|
||||||
if Id == 'original':
|
if Id == 'original':
|
||||||
pass
|
info_nfo = ', '.join(item.infoLabels['url_scraper']) + "\n"
|
||||||
|
return info_nfo
|
||||||
elif Id :
|
elif Id :
|
||||||
info_nfo = 'https://www.themoviedb.org/tv/{}/episode_group/{}\n'.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
|
return info_nfo
|
||||||
|
|||||||
@@ -185,10 +185,15 @@ class autorenumber():
|
|||||||
busy(False)
|
busy(False)
|
||||||
|
|
||||||
if not self.group:
|
if not self.group:
|
||||||
groups = tmdb.get_groups(self.item)
|
self.group = tmdb.get_nfo(self.item, search_groups=True)
|
||||||
if groups: self.group = tmdb.select_group(groups, self.item)
|
|
||||||
else: self.group = self.item.infoLabels['url_scraper']
|
if 'episode_group' in self.group:
|
||||||
seasons = tmdb.Tmdb(id_Tmdb=self.id).get_list_episodes()
|
seasons =[]
|
||||||
|
groupedSeasons = tmdb.get_group(self.group.replace('\n','').split('/')[-1])
|
||||||
|
for groupedSeason in groupedSeasons:
|
||||||
|
seasons.append({'season_number':groupedSeason['order'], 'episode_count':len(groupedSeason['episodes'])})
|
||||||
|
else:
|
||||||
|
seasons = tmdb.Tmdb(id_Tmdb=self.id).get_list_episodes()
|
||||||
|
|
||||||
count = 0
|
count = 0
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user