From 5af2e6a7ae448ecfc43144664c9d127ef6d59ba5 Mon Sep 17 00:00:00 2001 From: blacktwin Date: Sat, 25 Nov 2023 12:30:49 -0500 Subject: [PATCH] Adding feature for #391. use `--markWatched` to mark the removed item as Watched. --- utility/off_deck.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/utility/off_deck.py b/utility/off_deck.py index 85dc0fa..808d263 100644 --- a/utility/off_deck.py +++ b/utility/off_deck.py @@ -72,7 +72,9 @@ if __name__ == '__main__': help='User whose Continue Watching will be modified.') parser.add_argument('--playlists', nargs='+', help='Shows in playlist to be removed from Continue Watching') - + parser.add_argument('--markWatched', action='store_true', + help='Mark episode as watched after removing from Continue Watching') + opts = parser.parse_args() to_remove = [] @@ -105,3 +107,6 @@ if __name__ == '__main__': item.grandparentTitle, int(item.parentIndex), int(item.index), item.title)) # item.removeFromContinueWatching() remove_from_cw(plex_server, item.ratingKey) + if opts.markWatched: + print('Marking as watched!') + item.markPlayed() \ No newline at end of file