Backup Rinumerazione in tvshow.info

This commit is contained in:
Alhaziel
2020-03-17 10:56:31 +01:00
parent 65ec3aec83
commit 72a6768d8f
4 changed files with 70 additions and 13 deletions
+5
View File
@@ -57,6 +57,11 @@ def renumber(itemlist, item='', typography=''):
if item:
item.channel = item.from_channel if item.from_channel else item.channel
title = item.fulltitle.rstrip()
if item.channel in item.channel_prefs and TAG_TVSHOW_RENUMERATE in item.channel_prefs[item.channel] and title not in dict_series:
from core.videolibrarytools import check_renumber_options
from specials.videolibrary import update_videolibrary
check_renumber_options(item)
update_videolibrary(item)
if inspect.stack()[2][3] == 'find_episodes':
return itemlist
+3
View File
@@ -318,6 +318,8 @@ def get_seasons(item):
itemlist = []
dict_temp = {}
videolibrarytools.check_renumber_options(item)
raiz, carpetas_series, ficheros = next(filetools.walk(item.path))
# Menu contextual: Releer tvshow.nfo
@@ -441,6 +443,7 @@ def findvideos(item):
from specials import autoplay
logger.info()
# logger.debug("item:\n" + item.tostring('\n'))
videolibrarytools.check_renumber_options(item)
itemlist = []
list_canales = {}