Skip to content

Commit

Permalink
Only reroute to new window if container was not filled by the plugin a…
Browse files Browse the repository at this point in the history
  • Loading branch information
MoojMidge committed Sep 13, 2024
1 parent d6d776a commit bf19eee
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion resources/lib/youtube_plugin/kodion/abstract_provider.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,13 @@ def on_goto_page(provider, context, re_match):
else:
page_token = ''
params = dict(params, page=page, page_token=page_token)
return provider.reroute(context=context, path=path, params=params)

if context.is_plugin_path(
context.get_infolabel('Container.FolderPath'),
partial=True,
):
return provider.reroute(context=context, path=path, params=params)
return provider.navigate(context.clone(path, params))

@staticmethod
def on_reroute(provider, context, re_match):
Expand Down

0 comments on commit bf19eee

Please sign in to comment.