tmdb: Ottimizzazione nella ricerca globale, no cache in sezione discover

This commit is contained in:
marco
2020-10-12 18:02:04 +02:00
parent f8a87542eb
commit 0b5c0cd617
3 changed files with 36 additions and 32 deletions
+3 -2
View File
@@ -491,6 +491,9 @@ def scrape(func):
else:
break
if action != 'play' and function != 'episodios' and 'patronMenu' not in args and item.contentType in ['movie', 'tvshow', 'episode', 'undefined'] and not disabletmdb:
tmdb.set_infoLabels_itemlist(itemlist, seekTmdb=True)
if (pagination and len(matches) <= pag * pagination) or not pagination: # next page with pagination
if patronNext and inspect.stack()[1][3] not in ['newest']:
nextPage(itemlist, item, data, patronNext, function)
@@ -509,8 +512,6 @@ def scrape(func):
args=item.args,
page=pag + 1,
thumbnail=thumb()))
if action != 'play' and function != 'episodios' and 'patronMenu' not in args and item.contentType in ['movie', 'tvshow', 'episode', 'undefined'] and not disabletmdb:
tmdb.set_infoLabels_itemlist(itemlist, seekTmdb=True)
if anime:
from platformcode import autorenumber