Rimuove serie concluse da aggiornamento videoteca

This commit is contained in:
Alhaziel01
2020-07-18 11:19:52 +02:00
parent 0df61bcc43
commit 33e79d9c67
2 changed files with 6 additions and 3 deletions
+3
View File
@@ -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)