I've ripped a DVD set into episodes and acquired all the subtitles in external files. My media server - Plex - wants these filenames in these formats:
Episode:
X-Factor - s01e04 - Crazy People.mp4
Subtitles:
X-Factor - s01e04 - Crazy People.en.srt
However, the downloaded srt files did not have the Episode name in the filename, just the Season/Episode numbers. I got the filenames this far using Krename:
X-Factor - s01e04 - .srt
Now I need to "read" the episode name from the filename of the mp4 and insert it along with .en in between the end of the filename and the extension.
This task is compounded by the spaces everywhere, and it's 8 seasons of up to 12 episodes each. Not a manual task I want to do.
I could work from the filenames in the directories or from a text file with the episodes in it.
I'm trying to figure this out, but I'm not having any epiphanies.
I sense I should be able to match the s01e04 labels somehow to indicate which episode title to grab. This would be SOOOO easy in postgresql...
Episode:
X-Factor - s01e04 - Crazy People.mp4
Subtitles:
X-Factor - s01e04 - Crazy People.en.srt
However, the downloaded srt files did not have the Episode name in the filename, just the Season/Episode numbers. I got the filenames this far using Krename:
X-Factor - s01e04 - .srt
Now I need to "read" the episode name from the filename of the mp4 and insert it along with .en in between the end of the filename and the extension.
This task is compounded by the spaces everywhere, and it's 8 seasons of up to 12 episodes each. Not a manual task I want to do.
I could work from the filenames in the directories or from a text file with the episodes in it.
I'm trying to figure this out, but I'm not having any epiphanies.
I sense I should be able to match the s01e04 labels somehow to indicate which episode title to grab. This would be SOOOO easy in postgresql...
Comment