Fix Rinumerazione all'aggiunta in videoteca
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user