mirror of
https://github.com/pkkid/python-plexapi
synced 2024-11-26 05:30:20 +00:00
Script to mark all items in markwatched collected as watched
This commit is contained in:
parent
215bf833fa
commit
c95e43fc10
1 changed files with 10 additions and 0 deletions
10
tools/mark-watched.py
Executable file
10
tools/mark-watched.py
Executable 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()
|
Loading…
Reference in a new issue