Is it possible to remove videos from Plex's "Recently Added" section? I'd like to add some old videos to my server for posterity but not have them appears as newly added.
When I initially sought an answer to this question, I looked on support forums, including Plex's own and Reddit. All answers said it was either not possible or suggested editing the metadata_items
table of the SQLite database directly (yuck). I have since found a better way to do this, but those support threads are now locked, so I'm unable to share this solution there. Hopefully answering this question here helps others find it.
This actually is possible and quite easy via the REST API. First, pip install plexapi
. Then use the following script to update the addedAt
field of your video of choice.
import os
import sys
from plexapi.myplex import MyPlexAccount
USERNAME = os.environ.get("PLEX_USERNAME")
PASSWORD = os.environ.get("PLEX_PASSWORD")
account = MyPlexAccount(USERNAME, PASSWORD)
plex = account.resource("<YOUR_PLEX_HOSTNAME>").connect()
library = plex.library.section("<YOUR_PLEX_LIBRARY_NAME>")
video = library.get(title="<YOUR MOVIE TITLE>")
updates = {"addedAt.value": "2018-08-21 11:19:43"}
video.edit(**updates)
That's it! What we're doing here is changing the addedAt
value to be something that is older, since "Recently Added" is sorted by this date, so we're moving the video to the back of the line.