Skip to content

Commit 382036f

Browse files
committed
unify mark unplayed/played behaviour with plexweb; show mark unplayed even if video in progress
1 parent 3ee8580 commit 382036f

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

lib/windows/episodes.py

+4-3
Original file line numberDiff line numberDiff line change
@@ -513,10 +513,11 @@ def optionsButtonClicked(self, from_item=False):
513513
if len(mli.dataSource.media) > 1:
514514
options.append({'key': 'play_version', 'display': T(32451, 'Play Version...')})
515515

516-
if mli.dataSource.isWatched and not mli.dataSource.viewOffset.asInt():
517-
options.append({'key': 'mark_unwatched', 'display': T(32318, 'Mark Unplayed')})
518-
else:
516+
inProgress = mli.dataSource.viewOffset.asInt()
517+
if not mli.dataSource.isWatched or inProgress:
519518
options.append({'key': 'mark_watched', 'display': T(32319, 'Mark Played')})
519+
if mli.dataSource.isWatched or inProgress:
520+
options.append({'key': 'mark_unwatched', 'display': T(32318, 'Mark Unplayed')})
520521

521522
# if True:
522523
# options.append({'key': 'add_to_playlist', 'display': '[COLOR FF808080]Add To Playlist[/COLOR]'})

lib/windows/preplay.py

+4-3
Original file line numberDiff line numberDiff line change
@@ -183,10 +183,11 @@ def optionsButtonClicked(self):
183183
if len(self.video.media) > 1:
184184
options.append({'key': 'play_version', 'display': T(32451, 'Play Version...')})
185185

186-
if self.video.isWatched and not self.video.viewOffset.asInt():
187-
options.append({'key': 'mark_unwatched', 'display': T(32318, 'Mark Unplayed')})
188-
else:
186+
inProgress = self.video.viewOffset.asInt()
187+
if not self.video.isWatched or inProgress:
189188
options.append({'key': 'mark_watched', 'display': T(32319, 'Mark Played')})
189+
if self.video.isWatched or inProgress:
190+
options.append({'key': 'mark_unwatched', 'display': T(32318, 'Mark Unplayed')})
190191

191192
options.append(dropdown.SEPARATOR)
192193

0 commit comments

Comments
 (0)