fix Autorenumber

This commit is contained in:
Alhaziel01
2020-12-16 11:25:56 +01:00
parent 29d233afca
commit c55a3f444f
4 changed files with 11 additions and 8 deletions

View File

@@ -3,7 +3,7 @@
# Canale per AnimeUnity
# ------------------------------------------------------------
import requests, json, copy
import requests, json, copy, inspect
from core import support
from platformcode import autorenumber
@@ -212,7 +212,8 @@ def episodios(item):
contentType='episode',
url=it['link']))
autorenumber.start(itemlist, item)
if inspect.stack()[1][3] not in ['find_episodes']:
autorenumber.start(itemlist, item)
support.videolibrary(itemlist, item)
support.download(itemlist, item)
return itemlist

View File

@@ -105,7 +105,7 @@ def peliculas(item):
if pagination and len(itemlist) >= item.page * pagination and not item.search:
itlist.append(item.clone(channel=item.channel, action = 'peliculas', title=support.typo(support.config.get_localized_string(30992), 'color kod bold'), page=item.page + 1, thumbnail=support.thumb()))
itemlist = itlist
autorenumber.renumber(itemlist, item, 'bold')
autorenumber.start(itemlist)
return itemlist
@@ -156,7 +156,8 @@ def episodios(item):
action='findvideos'))
itemlist.sort(key=lambda item: (item.season, item.episode))
autorenumber.renumber(itemlist, item, 'bold')
if inspect.stack()[1][3] not in ['find_episodes']:
autorenumber.start(itemlist, item)
return support.videolibrary(itemlist, item)

View File

@@ -3,7 +3,7 @@
# Canale per Rai Play
# ------------------------------------------------------------
import requests, sys
import requests, sys, inspect
from core import support
from platformcode import autorenumber
if sys.version_info[0] >= 3:
@@ -297,7 +297,7 @@ def episodios(item):
it.title = support.typo(item.season + 'x' + episode, 'bold') + (' - ' + it.title)
if itemlist and itemlist[0].VL: support.videolibrary(itemlist, item)
if itemlist and not support.match(itemlist[0].title, patron=r'[Ss]?(\d+)(?:x|_|\.|\s+)[Ee]?[Pp]?(\d+)').match:
if itemlist and not support.match(itemlist[0].title, patron=r'[Ss]?(\d+)(?:x|_|\.|\s+)[Ee]?[Pp]?(\d+)').match and inspect.stack()[1][3] not in ['find_episodes']:
autorenumber.start(itemlist, item)
return itemlist

View File

@@ -2,7 +2,7 @@
# ------------------------------------------------------------
# Canale per vvvvid
# ----------------------------------------------------------
import requests, sys
import requests, sys, inspect
from core import support, tmdb
from platformcode import autorenumber, logger
@@ -170,7 +170,8 @@ def episodios(item):
url= host + show_id + '/season/' + str(key['season_id']),
action= 'findvideos',
video_id= key['video_id']))
autorenumber.start(itemlist, item)
if inspect.stack()[1][3] not in ['find_episodes']:
autorenumber.start(itemlist, item)
if autorenumber.check(item) == True \
or support.match(itemlist[0].title, patron=r"(\d+x\d+)").match:
support.videolibrary(itemlist,item)