Skip to content

Instantly share code, notes, and snippets.

@itslukej
Created January 9, 2023 00:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save itslukej/2baab0ee19c8e81728f7f9597501af23 to your computer and use it in GitHub Desktop.
Save itslukej/2baab0ee19c8e81728f7f9597501af23 to your computer and use it in GitHub Desktop.
Fix incorrect metadata for Plex Media Server Linux
#!/bin/sh
/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 = created_at WHERE added_at > strftime('%s', 'now');"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment