Created
November 25, 2020 15:13
-
-
Save martinbowling/0932e4ee7bfabbfb46dc5d24fc3792fe to your computer and use it in GitHub Desktop.
Refresh Plex Movies with No Metadata
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from plexapi.server import PlexServer | |
import datetime | |
plex = PlexServer('<plexurl>','<plextoken>',timeout=60) | |
for movie in plex.library.section('Movies').all(): | |
if movie.originallyAvailableAt == datetime.datetime(1900, 1, 1, 0, 0): | |
print("{} ({})".format(movie.title, movie.year)) | |
movie.refresh() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment