Skip to content

Commit 09b2216

Browse files
committed
unify mark unplayed/played behaviour with plexweb; show mark unplayed even if video in progress
1 parent adcb590 commit 09b2216

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

Diff for: lib/windows/episodes.py

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

525-
if mli.dataSource.isWatched and not mli.dataSource.viewOffset.asInt():
526-
options.append({'key': 'mark_unwatched', 'display': T(32318, 'Mark Unplayed')})
527-
else:
525+
inProgress = mli.dataSource.viewOffset.asInt()
526+
if not mli.dataSource.isWatched or inProgress:
528527
options.append({'key': 'mark_watched', 'display': T(32319, 'Mark Played')})
528+
if mli.dataSource.isWatched or inProgress:
529+
options.append({'key': 'mark_unwatched', 'display': T(32318, 'Mark Unplayed')})
529530

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

Diff for: lib/windows/preplay.py

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

196-
if self.video.isWatched and not self.video.viewOffset.asInt():
197-
options.append({'key': 'mark_unwatched', 'display': T(32318, 'Mark Unplayed')})
198-
else:
196+
inProgress = self.video.viewOffset.asInt()
197+
if not self.video.isWatched or inProgress:
199198
options.append({'key': 'mark_watched', 'display': T(32319, 'Mark Played')})
199+
if self.video.isWatched or inProgress:
200+
options.append({'key': 'mark_unwatched', 'display': T(32318, 'Mark Unplayed')})
200201

201202
options.append(dropdown.SEPARATOR)
202203

0 commit comments

Comments
 (0)