Fix Novità
This commit is contained in:
+5
-4
@@ -400,13 +400,14 @@ def get_title(item):
|
|||||||
# title = re.compile("\[.*?\]", re.DOTALL).sub("", item.contentSerieName)
|
# title = re.compile("\[.*?\]", re.DOTALL).sub("", item.contentSerieName)
|
||||||
if not scrapertools.get_season_and_episode(title) and item.contentEpisodeNumber:
|
if not scrapertools.get_season_and_episode(title) and item.contentEpisodeNumber:
|
||||||
# contentSeason non c'è in support
|
# contentSeason non c'è in support
|
||||||
if not item.contentSeason:
|
if item.contentSeason:
|
||||||
item.contentSeason = '1'
|
title = '{}x{:02d}. {}'.format(item.contentSeason, item.contentEpisodeNumber, title)
|
||||||
title = "%sx%s - %s" % (item.contentSeason, str(item.contentEpisodeNumber).zfill(2), title)
|
else:
|
||||||
|
title = '{:02d}. {}'.format(item.contentEpisodeNumber, title)
|
||||||
else:
|
else:
|
||||||
seas = scrapertools.get_season_and_episode(item.title)
|
seas = scrapertools.get_season_and_episode(item.title)
|
||||||
if seas:
|
if seas:
|
||||||
title = "%s - %s" % (seas, title)
|
title = "{}. {}".format(seas, title)
|
||||||
|
|
||||||
elif item.contentTitle: # If it is a movie with the adapted channel
|
elif item.contentTitle: # If it is a movie with the adapted channel
|
||||||
title = item.contentTitle
|
title = item.contentTitle
|
||||||
|
|||||||
Reference in New Issue
Block a user