Fix Rinumerazione

This commit is contained in:
Alhaziel
2019-09-22 15:04:58 +02:00
parent 1399ee9866
commit af11368c30

View File

@@ -261,7 +261,8 @@ def renumeration (itemlist, item, typography, dict_series, ID, SEASON, EPISODE,
return error(itemlist)
if len(EpisodeDict) >= len(itemlist):
for item in itemlist:
number = scrapertoolsV2.find_single_match(item.title, r'\d+').lstrip("0")
number = scrapertoolsV2.find_single_match(item.title, r'\d+')
if number != '0': number.lstrip("0")
item.title = typo(EpisodeDict[str(number)] + ' - ', typography) + item.title
else:
make_list(itemlist, item, typography, dict_series, ID, SEASON, EPISODE, MODE, TITLE)