Skip to content

Instantly share code, notes, and snippets.

@AlexNodex
Last active May 23, 2023 12:35
Show Gist options
  • Save AlexNodex/29c73b0495aa3f0e0339861c3c107286 to your computer and use it in GitHub Desktop.
Save AlexNodex/29c73b0495aa3f0e0339861c3c107286 to your computer and use it in GitHub Desktop.
Update plex metadata after a new server install / moving server
sudo service plexmediaserver stop
sudo /usr/lib/plexmediaserver/Plex\ Media\ Server --sqlite "/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Plug-in Support/Databases/com.plexapp.plugins.library.db"
UPDATE metadata_items SET added_at = originally_available_at;
sudo service plexmediaserver start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment