Plex series directory name including {tvdb-id#}
Posted: 07 Sep 2022, 05:31
I was naming the series video files with {tvdb-id} but according to plex series naming standards that is incorrect. The series directory is supposed to have the TVDB ID after the series name like so:
Star Trek {tvdb-77526}
_Season 1
__s01e01.mov
_Season 2
__s02e01.mov
How do we accomplish this with a renaming script?
Right now I am using this format for manual renaming in the GUI:
and this code in a script:
Both of which put the tvdb-id into the file name and not the directory name.
Star Trek {tvdb-77526}
_Season 1
__s01e01.mov
_Season 2
__s02e01.mov

Right now I am using this format for manual renaming in the GUI:
Code: Select all
/Volumes/PlexMedia/PlexServer_1/{plex.derive{' {tvdb-'}{id}{'}'}{' - ['+allOf{tags}{vf}{vs}{crc32}.join(' ')}{']'}}{if (dc > 1) '.'+di}
Code: Select all
--def seriesFormat="/Volumes/PlexMedia/PlexServer_1/{plex.derive{' {tvdb-'}{id}{'}'}{' - ['+allOf{tags}{vf}{vs}{crc32}.join(' ')}{']'}}{if (dc > 1) '.'+di}"
