Skip to content

Instantly share code, notes, and snippets.

@martinbowling
Created November 25, 2020 15:13
Show Gist options
  • Save martinbowling/0932e4ee7bfabbfb46dc5d24fc3792fe to your computer and use it in GitHub Desktop.
Save martinbowling/0932e4ee7bfabbfb46dc5d24fc3792fe to your computer and use it in GitHub Desktop.
Refresh Plex Movies with No Metadata
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