From 4a7fe5c7842a4aae0cd0ac2a1c3739a852199265 Mon Sep 17 00:00:00 2001 From: Alhaziel Date: Wed, 9 Oct 2019 21:12:35 +0200 Subject: [PATCH] =?UTF-8?q?Fix=20Pagination=20in=20Novit=C3=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/support.py | 23 ++++++++++++----------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/core/support.py b/core/support.py index 8a58591c..ad30c339 100644 --- a/core/support.py +++ b/core/support.py @@ -389,17 +389,18 @@ def scrape(func): # next page for pagination if pagination and len(matches) >= pag * pagination: - itemlist.append( - Item(channel=item.channel, - action = item.action, - contentType=item.contentType, - title=typo(config.get_localized_string(30992), 'color kod bold'), - fulltitle= item.fulltitle, - show= item.show, - url=item.url, - args=item.args, - page=pag + 1, - thumbnail=thumb())) + if inspect.stack()[1][3] != 'get_newest': + itemlist.append( + Item(channel=item.channel, + action = item.action, + contentType=item.contentType, + title=typo(config.get_localized_string(30992), 'color kod bold'), + fulltitle= item.fulltitle, + show= item.show, + url=item.url, + args=item.args, + page=pag + 1, + thumbnail=thumb())) if action != 'play' and function != 'episodios' and 'patronMenu' not in args: tmdb.set_infoLabels_itemlist(itemlist, seekTmdb=True)