Skip to content

Commit

Permalink
unify mark unplayed/played behaviour with plexweb; show mark unplayed…
Browse files Browse the repository at this point in the history
… even if video in progress
  • Loading branch information
pannal committed Jul 20, 2018
1 parent 3ee8580 commit 8801659
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions lib/windows/episodes.py
Original file line number Diff line number Diff line change
Expand Up @@ -513,10 +513,10 @@ def optionsButtonClicked(self, from_item=False):
if len(mli.dataSource.media) > 1:
options.append({'key': 'play_version', 'display': T(32451, 'Play Version...')})

if mli.dataSource.isWatched and not mli.dataSource.viewOffset.asInt():
options.append({'key': 'mark_unwatched', 'display': T(32318, 'Mark Unplayed')})
else:
if not mli.dataSource.isWatched or mli.dataSource.viewOffset.asInt():
options.append({'key': 'mark_watched', 'display': T(32319, 'Mark Played')})
if mli.dataSource.isWatched or mli.dataSource.viewOffset.asInt():
options.append({'key': 'mark_unwatched', 'display': T(32318, 'Mark Unplayed')})

# if True:
# options.append({'key': 'add_to_playlist', 'display': '[COLOR FF808080]Add To Playlist[/COLOR]'})
Expand Down
6 changes: 3 additions & 3 deletions lib/windows/preplay.py
Original file line number Diff line number Diff line change
Expand Up @@ -183,10 +183,10 @@ def optionsButtonClicked(self):
if len(self.video.media) > 1:
options.append({'key': 'play_version', 'display': T(32451, 'Play Version...')})

if self.video.isWatched and not self.video.viewOffset.asInt():
options.append({'key': 'mark_unwatched', 'display': T(32318, 'Mark Unplayed')})
else:
if not self.video.isWatched or self.video.viewOffset.asInt():
options.append({'key': 'mark_watched', 'display': T(32319, 'Mark Played')})
if self.video.isWatched or self.video.viewOffset.asInt():
options.append({'key': 'mark_unwatched', 'display': T(32318, 'Mark Unplayed')})

options.append(dropdown.SEPARATOR)

Expand Down

0 comments on commit 8801659

Please sign in to comment.