From af11368c307d14be94cea7050d7d97b8f28fecca Mon Sep 17 00:00:00 2001 From: Alhaziel Date: Sun, 22 Sep 2019 15:04:58 +0200 Subject: [PATCH] Fix Rinumerazione --- specials/autorenumber.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/specials/autorenumber.py b/specials/autorenumber.py index c8360d89..6099587a 100644 --- a/specials/autorenumber.py +++ b/specials/autorenumber.py @@ -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)