Rimuove serie concluse da aggiornamento videoteca
This commit is contained in:
@@ -129,6 +129,9 @@ def check_for_update(overwrite=True):
|
||||
|
||||
for i, tvshow_file in enumerate(show_list):
|
||||
head_nfo, serie = videolibrarytools.read_nfo(tvshow_file)
|
||||
if serie.infoLabels['status'].lower() == 'ended':
|
||||
serie.active = 0
|
||||
filetools.write(tvshow_file, head_nfo + serie.tojson())
|
||||
path = filetools.dirname(tvshow_file)
|
||||
|
||||
logger.info("serie=" + serie.contentSerieName)
|
||||
|
||||
@@ -717,9 +717,9 @@ def update_tvshow(item):
|
||||
nfo_path = filetools.join(item.path, "tvshow.nfo")
|
||||
head_nfo, item_nfo = videolibrarytools.read_nfo(nfo_path)
|
||||
if item.active and not item_nfo.active:
|
||||
if not platformtools.dialog_yesno(config.get_localized_string(60037).replace('...',''), config.get_localized_string(70268) % item.contentSerieName):
|
||||
item_nfo.active = 1
|
||||
filetools.write(nfo_path, head_nfo + item_nfo.tojson())
|
||||
# if not platformtools.dialog_yesno(config.get_localized_string(60037).replace('...',''), config.get_localized_string(70268) % item.contentSerieName):
|
||||
item_nfo.active = 1
|
||||
filetools.write(nfo_path, head_nfo + item_nfo.tojson())
|
||||
|
||||
platformtools.itemlist_refresh()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user