Skip to content

Commit

Permalink
Fix playing clips in a playlist anxdpanic#1007
Browse files Browse the repository at this point in the history
  • Loading branch information
MoojMidge committed Dec 5, 2024
1 parent c19596d commit 6ff23b6
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@ def run(self):

access_manager = self._context.get_access_manager()
settings = self._context.get_settings()
playlist_player = self._context.get_playlist_player()

video_id_param = 'video_id=%s' % self.video_id
report_url = use_remote_history and playback_stats.get('watchtime_url')
Expand Down Expand Up @@ -139,7 +140,10 @@ def run(self):
waited = 0
player.seekTime(player.start_time)
continue
player.stop()
if playlist_player.size() > 1:
playlist_player.play_playlist_item('next')
else:
player.stop()

if waited >= report_period:
waited = 0
Expand Down

0 comments on commit 6ff23b6

Please sign in to comment.