plextool recent
Plex has no way to edit the Recently Added lists. This command changes the “added at” date on items, which moves them forward or back in those lists.
Handy when:
The database was recreated and the real newest content needs to be at the front.
Duplicate files were deleted, Plex rescanned, and everything came back as “new”.
Files were reorganised on disk and Plex treated them as new additions.
$ plextool recent (--title T | --guid ID | --recent N) (--date D | --release | --now | --shift OFFSET) [options]
Without --commit it only prints what it would do.
Choosing items
Exactly one of:
Option |
Meaning |
|---|---|
|
Titles containing TEXT. The year is not part of the title; Plex stores it separately. |
|
One item by Plex ID ( |
|
The N most recently added items, per library. |
Narrow it down with:
Option |
Meaning |
|---|---|
|
Library to use. Repeat for several. Default is every movie and TV library. |
|
|
|
When changing a show or season, change its seasons and episodes too. |
Choosing the new date
Exactly one of:
Option |
Meaning |
|---|---|
|
Use this date: |
|
Use each item’s own release or air date. Items with no release date are skipped. |
|
Use the current time. |
|
Move each item’s current date by an offset: a number plus |
Future dates work. They put the item at the front until that date passes.
Writing
-y, --commit applies the changes.
By default the new date is locked in Plex, the same as editing the date in
the web UI, so a later rescan or metadata refresh leaves it alone. Pass
--no-lock to write the date without locking it.
TV shows
Plex builds the TV Recently Added list from episodes, so changing only the
show usually changes nothing visible. To reorder a series, use --cascade, or
work on episodes directly with --level episode.
Examples
Preview the last 3 movies added:
$ plextool recent -l Movies -n 3 --release
Send one movie back to its release date, by Plex ID:
$ plextool recent -g plex://movie/62343531cf31d465454ccb34afad --release --commit
Set a whole series, every season and every episode, to each episode’s air date:
$ plextool recent -l "TV Shows" -t "Some Show" --cascade --release --commit
Push the 20 newest episodes back a week:
$ plextool recent -l "TV Shows" --level episode -n 20 --shift=-7d --commit
Notes
Dates given are read as local time.
A title search matches substrings, so “Lord” finds “Lord of the Rings”, “Lord of the Flies” and “Sealord”. Review the dry run, then select the right one by
--guid.Searching by agent ID (
imdb://, etc.) checks each item’s IDs locally, which is slower on big libraries than a Plex ID lookup.