From 95bd39c8874737f75380eb045be5f008becafa0c Mon Sep 17 00:00:00 2001 From: Alhaziel01 Date: Mon, 26 Apr 2021 15:42:05 +0200 Subject: [PATCH] Fix TMDB Rinumerazione --- platformcode/autorenumber.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/platformcode/autorenumber.py b/platformcode/autorenumber.py index 8d5dbe67..3282d870 100644 --- a/platformcode/autorenumber.py +++ b/platformcode/autorenumber.py @@ -141,19 +141,19 @@ class autorenumber(): # Pulizia del Titolo if any( word in self.title.lower() for word in ['specials', 'speciali']): self.title = re.sub(r'\s*specials|\s*speciali', '', self.title.lower()) - elif not self.item.infoLabels['tvdb_id']: + elif not self.item.infoLabels['tmdb_id']: self.item.contentSerieName = self.title.rstrip('123456789 ') - while not self.item.exit: - self.item.infoLabels['imdb_id'] = '' - self.item.infoLabels['tvdb_id'] = '' - self.item.infoLabels['tmdb_id'] = '' - self.item.infoLabels['year'] = '-' - self.item.contentType = 'tvshow' + 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') + else:self.item = platformtools.dialog_info(self.item, 'tmdb') # Rinumerazione Automatica if (not self.id and self.auto) or self.item.renumber: