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.
|
@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 + "#")
|
logger.debug("show=#" + item.show + "#")
|
||||||
from platformcode.launcher import set_search_temp; set_search_temp(item)
|
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):
|
if not check(item):
|
||||||
action = item.action
|
action = item.action
|
||||||
item.renumber = True
|
item.renumber = True
|
||||||
|
item.disabletmdb = True
|
||||||
start(item)
|
start(item)
|
||||||
item.renumber = False
|
item.renumber = False
|
||||||
item.action = action
|
item.action = action
|
||||||
|
|||||||
@@ -145,16 +145,18 @@ class autorenumber():
|
|||||||
elif not self.item.infoLabels['tmdb_id']:
|
elif not self.item.infoLabels['tmdb_id']:
|
||||||
self.item.contentSerieName = self.title.rstrip('123456789 ')
|
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'
|
self.item.contentType = 'tvshow'
|
||||||
|
|
||||||
while not self.item.exit:
|
if not self.item.disabletmdb:
|
||||||
tmdb.find_and_set_infoLabels(self.item)
|
self.item.infoLabels['imdb_id'] = ''
|
||||||
if self.item.infoLabels['tmdb_id']: self.item.exit = True
|
self.item.infoLabels['tvdb_id'] = ''
|
||||||
else:self.item = platformtools.dialog_info(self.item, 'tmdb')
|
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
|
# Rinumerazione Automatica
|
||||||
if (not self.id and self.auto) or self.item.renumber:
|
if (not self.id and self.auto) or self.item.renumber:
|
||||||
|
|||||||
Reference in New Issue
Block a user