From a95aa5f8160d1f6bc5c44c70b94c65c8fd4852fa Mon Sep 17 00:00:00 2001 From: Alhaziel01 Date: Fri, 11 Jun 2021 10:46:49 +0200 Subject: [PATCH] Fix Rinumerazione all'aggiunta in videoteca --- core/videolibrarytools.py | 2 ++ platformcode/autorenumber.py | 18 ++++++++++-------- 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/core/videolibrarytools.py b/core/videolibrarytools.py index 1c16fad0..0d793db6 100644 --- a/core/videolibrarytools.py +++ b/core/videolibrarytools.py @@ -1010,6 +1010,7 @@ def add_tvshow(item, channel=None): @param channel: channel from which the series will be saved. By default, item.from_channel or item.channel will be imported. """ + logger.debug("show=#" + item.show + "#") from platformcode.launcher import set_search_temp; set_search_temp(item) @@ -1055,6 +1056,7 @@ def add_tvshow(item, channel=None): if not check(item): action = item.action item.renumber = True + item.disabletmdb = True start(item) item.renumber = False item.action = action diff --git a/platformcode/autorenumber.py b/platformcode/autorenumber.py index 9047ad7c..81dbade3 100644 --- a/platformcode/autorenumber.py +++ b/platformcode/autorenumber.py @@ -145,16 +145,18 @@ class autorenumber(): elif not self.item.infoLabels['tmdb_id']: self.item.contentSerieName = self.title.rstrip('123456789 ') - self.item.infoLabels['imdb_id'] = '' - self.item.infoLabels['tvdb_id'] = '' - self.item.infoLabels['tmdb_id'] = '' - self.item.infoLabels['year'] = '-' self.item.contentType = 'tvshow' - while not self.item.exit: - tmdb.find_and_set_infoLabels(self.item) - if self.item.infoLabels['tmdb_id']: self.item.exit = True - else:self.item = platformtools.dialog_info(self.item, 'tmdb') + if not self.item.disabletmdb: + self.item.infoLabels['imdb_id'] = '' + self.item.infoLabels['tvdb_id'] = '' + self.item.infoLabels['tmdb_id'] = '' + self.item.infoLabels['year'] = '-' + + while not self.item.exit: + tmdb.find_and_set_infoLabels(self.item) + if self.item.infoLabels['tmdb_id']: self.item.exit = True + else:self.item = platformtools.dialog_info(self.item, 'tmdb') # Rinumerazione Automatica if (not self.id and self.auto) or self.item.renumber: