Fix successivo in novità
This commit is contained in:
@@ -87,6 +87,7 @@ def newest(category):
|
|||||||
itemlist = []
|
itemlist = []
|
||||||
item = support.Item()
|
item = support.Item()
|
||||||
item.args = 1
|
item.args = 1
|
||||||
|
item.newest = True
|
||||||
if category == 'peliculas':
|
if category == 'peliculas':
|
||||||
item.url = host + '/film'
|
item.url = host + '/film'
|
||||||
else:
|
else:
|
||||||
@@ -147,6 +148,7 @@ def peliculas(item):
|
|||||||
recordlist.append(it)
|
recordlist.append(it)
|
||||||
|
|
||||||
itemlist.sort(key=lambda item: item.n)
|
itemlist.sort(key=lambda item: item.n)
|
||||||
|
if not item.newest:
|
||||||
if recordlist:
|
if recordlist:
|
||||||
itemlist.append(item.clone(title=support.typo(support.config.get_localized_string(30992), 'color kod bold'), thumbnail=support.thumb(), page=page, records=recordlist))
|
itemlist.append(item.clone(title=support.typo(support.config.get_localized_string(30992), 'color kod bold'), thumbnail=support.thumb(), page=page, records=recordlist))
|
||||||
elif len(itemlist) >= 20:
|
elif len(itemlist) >= 20:
|
||||||
|
|||||||
@@ -90,6 +90,7 @@ def search(item, text):
|
|||||||
def newest(categoria):
|
def newest(categoria):
|
||||||
item = support.Item()
|
item = support.Item()
|
||||||
item.args = 'channel/10007/last/'
|
item.args = 'channel/10007/last/'
|
||||||
|
item.newest = True
|
||||||
if categoria == 'peliculas':
|
if categoria == 'peliculas':
|
||||||
item.contentType = 'movie'
|
item.contentType = 'movie'
|
||||||
item.url = main_host + 'film/'
|
item.url = main_host + 'film/'
|
||||||
@@ -133,6 +134,7 @@ def peliculas(item):
|
|||||||
make_itemlist(itemlist, item, json_file)
|
make_itemlist(itemlist, item, json_file)
|
||||||
|
|
||||||
itlist = []
|
itlist = []
|
||||||
|
if not item.newest:
|
||||||
for i, it in enumerate(itemlist):
|
for i, it in enumerate(itemlist):
|
||||||
if pagination and (item.page - 1) * pagination > i: continue # pagination
|
if pagination and (item.page - 1) * pagination > i: continue # pagination
|
||||||
if pagination and i >= item.page * pagination: break # pagination
|
if pagination and i >= item.page * pagination: break # pagination
|
||||||
|
|||||||
Reference in New Issue
Block a user