Prova inspect.stack senza contesto

This commit is contained in:
marco
2022-09-21 20:27:44 +02:00
parent 4987901909
commit fef67c2bbd
6 changed files with 11 additions and 11 deletions
+1 -1
View File
@@ -115,7 +115,7 @@ def peliculas(item):
action = 'seasons'
patron = r'<img src="(?P<thumb>[^"]+)(?:[^>]+>){4}\s*<a href="(?P<url>[^"]+)[^>]+>(?P<title>[^<]+)'
if (item.args == 'search' or item.contentType != 'movie') and inspect.stack()[4][3] not in ['get_channel_results']:
if (item.args == 'search' or item.contentType != 'movie') and inspect.stack(0)[4][3] not in ['get_channel_results']:
patronNext = None
def itemlistHook(itemlist):
lastUrl = support.match(data, patron=r'href="([^"]+)">Last').match
+1 -1
View File
@@ -210,7 +210,7 @@ def episodios(item):
scws_id=it.get('scws_id', ''),
video_url=it.get('link', '')))
if inspect.stack()[1][3] not in ['find_episodes']:
if inspect.stack(0)[1][3] not in ['find_episodes']:
autorenumber.start(itemlist, item)
support.videolibrary(itemlist, item)
support.download(itemlist, item)
+1 -1
View File
@@ -155,7 +155,7 @@ def episodios(item):
action='findvideos'))
itemlist.sort(key=lambda item: (item.season, item.episode))
if inspect.stack()[1][3] not in ['find_episodes']:
if inspect.stack(0)[1][3] not in ['find_episodes']:
autorenumber.start(itemlist, item)
return support.videolibrary(itemlist, item)
+1 -1
View File
@@ -100,7 +100,7 @@ def episodios(item):
itemlist = findepisode(item)
if not itemlist: itemlist = [item.clone(action='findvideos')]
if inspect.stack()[1][3] not in ['find_episodes']:
if inspect.stack(0)[1][3] not in ['find_episodes']:
from platformcode import autorenumber
autorenumber.start(itemlist, item)
return itemlist
+2 -2
View File
@@ -142,7 +142,7 @@ def peliculas(item):
itlist.append(it)
if pagination and len(itemlist) >= pagination:
if inspect.stack()[1][3] != 'get_newest':
if inspect.stack(0)[1][3] != 'get_newest':
itlist.append(
item.clone(action='peliculas',
title=support.typo(config.get_localized_string(30992), 'color kod bold'),
@@ -192,7 +192,7 @@ def episodios(item):
action= 'findvideos',
video_id= episode['video_id']))
if inspect.stack()[1][3] not in ['find_episodes']:
if inspect.stack(0)[1][3] not in ['find_episodes']:
autorenumber.start(itemlist, item)
support.videolibrary(itemlist,item)