Skip to content

Commit

Permalink
Workarounds for trying to play videos using RunPlugin rather PlayMedia
Browse files Browse the repository at this point in the history
  • Loading branch information
MoojMidge committed Sep 4, 2024
1 parent e800d19 commit 5c5c718
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions resources/lib/youtube_plugin/youtube/helper/yt_play.py
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,12 @@ def process(provider, context, **_kwargs):
context.execute('Action(Play)')
return False

if context.get_handle() == -1:
context.execute('PlayMedia({0})'.format(
context.create_uri(('play',), params)
))
return False

ui.set_property(BUSY_FLAG)
playlist_player = context.get_playlist_player()
position, _ = playlist_player.get_position()
Expand Down

0 comments on commit 5c5c718

Please sign in to comment.