Script to mark all items in markwatched collected as watched

This commit is contained in:
Michael Shepanski 2017-06-04 22:24:40 -04:00
parent 215bf833fa
commit c95e43fc10

10
tools/mark-watched.py Executable file
View file

@ -0,0 +1,10 @@
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
from plexapi.server import PlexServer
plex = PlexServer()
for section in plex.library.sections():
if section.type in ('movie', 'artist', 'show'):
for item in section.search(collection='markwatched'):
print('Marking %s watched.' % item.title)
item.watched()