Skip to content

Commit 591579a

Browse files
committed
Make executable
Dont mark shows watched if they are already marked so.
1 parent 9efbde9 commit 591579a

File tree

4 files changed

+5
-3
lines changed

4 files changed

+5
-3
lines changed

tools/plex-bootstraptest.py

100644100755
File mode changed.

tools/plex-gettoken.py

100644100755
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,4 @@
99
password = input("Plex password: ")
1010

1111
account = MyPlexAccount(username, password)
12-
print(account.authenticationToken)
12+
print(account.authenticationToken)

tools/plex-markwatched.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,7 @@
2525
for section in plex.library.sections():
2626
if section.type in ('show',): # ('movie', 'artist', 'show'):
2727
for item in section.search(collection='markwatched'):
28-
print('%s Marking %s watched.' % (datestr(), item.title))
29-
item.markWatched()
28+
for episode in item.episodes():
29+
if not episode.isWatched:
30+
print('%s Marking %s watched.' % (datestr(), episode.title))
31+
item.markWatched()

tools/plex-teardowntest.py

100644100755
File mode changed.

0 commit comments

Comments
 (0)