Skip to content

Commit

Permalink
Merge branch 'im85288:master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
olavinto authored Jul 14, 2024
2 parents 7c0ee80 + 6a783d2 commit 8723267
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions resources/lib/playbackmanager.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,9 @@ def launch_popup(self, episode, source=None):

# Add next file to playlist if existing playlist is not being used
if source != 'playlist':
self.state.queued = self.api.queue_next_item(episode)
queued = self.state.queued = self.api.queue_next_item(episode)
else:
queued = False

# We have a next up episode choose mode
if get_setting_int('simpleMode') == 0:
Expand Down Expand Up @@ -118,7 +120,7 @@ def launch_popup(self, episode, source=None):
self.log('playing media episode', 2)
# Signal to trakt previous episode watched
event(message='NEXTUPWATCHEDSIGNAL', data={'episodeid': self.state.current_episode_id}, encoding='base64')
if source == 'playlist' or self.state.queued:
if source == 'playlist' or queued:
# Play playlist media
if should_play_non_default:
# Only start the next episode if the user asked for it specifically
Expand Down

0 comments on commit 8723267

Please sign in to comment.