Fix Community
This commit is contained in:
@@ -168,7 +168,7 @@ def peliculas(item, json='', key='', itemlist=[]):
|
|||||||
itlist = filterkey = []
|
itlist = filterkey = []
|
||||||
action = 'findvideos'
|
action = 'findvideos'
|
||||||
|
|
||||||
if inspect.stack()[1][3] not in ['add_tvshow', 'get_episodes', 'update', 'find_episodes']:
|
if inspect.stack()[1][3] not in ['add_tvshow', 'get_episodes', 'update', 'find_episodes', 'search']:
|
||||||
Pagination = int(defp) if defp.isdigit() else ''
|
Pagination = int(defp) if defp.isdigit() else ''
|
||||||
else: Pagination = ''
|
else: Pagination = ''
|
||||||
pag = item.page if item.page else 1
|
pag = item.page if item.page else 1
|
||||||
@@ -211,7 +211,7 @@ def peliculas(item, json='', key='', itemlist=[]):
|
|||||||
tmdb.set_infoLabels(itlist, seekTmdb=True)
|
tmdb.set_infoLabels(itlist, seekTmdb=True)
|
||||||
itemlist += itlist
|
itemlist += itlist
|
||||||
|
|
||||||
if Pagination and len(itemlist) > pag * Pagination:
|
if Pagination and len(itemlist) >= Pagination:
|
||||||
if inspect.stack()[1][3] != 'get_newest':
|
if inspect.stack()[1][3] != 'get_newest':
|
||||||
item.title = support.typo(config.get_localized_string(30992), 'color kod bold')
|
item.title = support.typo(config.get_localized_string(30992), 'color kod bold')
|
||||||
item.page = pag + 1
|
item.page = pag + 1
|
||||||
@@ -273,7 +273,7 @@ def episodios(item, json ='', key='', itemlist =[]):
|
|||||||
ep = 1
|
ep = 1
|
||||||
season = infoLabels['season'] if 'season' in infoLabels else item.contentSeason if item.contentSeason else 1
|
season = infoLabels['season'] if 'season' in infoLabels else item.contentSeason if item.contentSeason else 1
|
||||||
|
|
||||||
if inspect.stack()[1][3] not in ['add_tvshow', 'get_episodes', 'update', 'find_episodes']:
|
if inspect.stack()[1][3] not in ['add_tvshow', 'get_episodes', 'update', 'find_episodes', 'search']:
|
||||||
Pagination = int(defp) if defp.isdigit() else ''
|
Pagination = int(defp) if defp.isdigit() else ''
|
||||||
else: Pagination = ''
|
else: Pagination = ''
|
||||||
pag = item.page if item.page else 1
|
pag = item.page if item.page else 1
|
||||||
@@ -321,7 +321,7 @@ def episodios(item, json ='', key='', itemlist =[]):
|
|||||||
path = item.path))
|
path = item.path))
|
||||||
|
|
||||||
# if showseason
|
# if showseason
|
||||||
if inspect.stack()[1][3] not in ['add_tvshow', 'get_episodes', 'update', 'find_episodes', 'get_newest']:
|
if inspect.stack()[1][3] not in ['add_tvshow', 'get_episodes', 'update', 'find_episodes', 'get_newest', 'search']:
|
||||||
if show_seasons and not item.filterseason:
|
if show_seasons and not item.filterseason:
|
||||||
itm.contentType='season'
|
itm.contentType='season'
|
||||||
season_list = []
|
season_list = []
|
||||||
@@ -341,8 +341,9 @@ def episodios(item, json ='', key='', itemlist =[]):
|
|||||||
infoLabels=infoLabels,
|
infoLabels=infoLabels,
|
||||||
filterseason=str(season),
|
filterseason=str(season),
|
||||||
path=item.path))
|
path=item.path))
|
||||||
|
|
||||||
elif defpage and inspect.stack()[1][3] not in ['get_seasons']:
|
elif defpage and inspect.stack()[1][3] not in ['get_seasons']:
|
||||||
if Pagination and len(itemlist) > pag * Pagination:
|
if Pagination and len(itemlist) >= Pagination:
|
||||||
if inspect.stack()[1][3] != 'get_newest':
|
if inspect.stack()[1][3] != 'get_newest':
|
||||||
item.title = support.typo(config.get_localized_string(30992), 'color kod bold')
|
item.title = support.typo(config.get_localized_string(30992), 'color kod bold')
|
||||||
item.page = pag + 1
|
item.page = pag + 1
|
||||||
@@ -662,7 +663,7 @@ def pagination(item, itemlist = []):
|
|||||||
encoded_itemlist = []
|
encoded_itemlist = []
|
||||||
for it in itemlist:
|
for it in itemlist:
|
||||||
encoded_itemlist.append(it.tourl())
|
encoded_itemlist.append(it.tourl())
|
||||||
if inspect.stack()[1][3] not in ['add_tvshow', 'get_episodes', 'update', 'find_episodes']:
|
if inspect.stack()[1][3] not in ['add_tvshow', 'get_episodes', 'update', 'find_episodes', 'search']:
|
||||||
Pagination = int(defp) if defp.isdigit() else ''
|
Pagination = int(defp) if defp.isdigit() else ''
|
||||||
else: Pagination = ''
|
else: Pagination = ''
|
||||||
pag = item.page if item.page else 1
|
pag = item.page if item.page else 1
|
||||||
@@ -673,7 +674,7 @@ def pagination(item, itemlist = []):
|
|||||||
|
|
||||||
itlist.append(item)
|
itlist.append(item)
|
||||||
|
|
||||||
if Pagination and len(itemlist) > pag * Pagination:
|
if Pagination and len(itemlist) >= Pagination:
|
||||||
if inspect.stack()[1][3] != 'get_newest':
|
if inspect.stack()[1][3] != 'get_newest':
|
||||||
itlist.append(
|
itlist.append(
|
||||||
Item(channel=item.channel,
|
Item(channel=item.channel,
|
||||||
|
|||||||
Reference in New Issue
Block a user