diff --git a/resources/lib/youtube_plugin/kodion/context/abstract_context.py b/resources/lib/youtube_plugin/kodion/context/abstract_context.py index edeb0bdba..f12ce7acb 100644 --- a/resources/lib/youtube_plugin/kodion/context/abstract_context.py +++ b/resources/lib/youtube_plugin/kodion/context/abstract_context.py @@ -52,6 +52,7 @@ class AbstractContext(object): 'enable', 'hide_folders', 'hide_live', + 'hide_next_page', 'hide_playlists', 'hide_search', 'incognito', diff --git a/resources/lib/youtube_plugin/youtube/helper/v3.py b/resources/lib/youtube_plugin/youtube/helper/v3.py index d80a1365d..a747a6892 100644 --- a/resources/lib/youtube_plugin/youtube/helper/v3.py +++ b/resources/lib/youtube_plugin/youtube/helper/v3.py @@ -471,7 +471,7 @@ def response_to_items(provider, result.sort(key=sort, reverse=reverse) # no processing of next page item - if not result or not process_next_page: + if not result or not process_next_page or params.get('hide_next_page'): return result # next page