Page 1 of 1

[Windows] My way to rename an episode the way I want it

Posted: October 30th, 2009, 7:46 am
by Brainpower
Because the subs on bierdopje.com always have the syntax Show.Name.S0xE0x.720p.HDTV.X264.RLS, I was looking for a way to make sure the episode I was downloading gets renamed like that.

I now finally have that working and ofcourse wanted to share that with you guys.

To start I have TV sorting enabled with the following parsing method: %sn/Season %0s/%s.n.S%0sE%0e - %e.n.%ext
In the end I abuse the %e.n to copy the "720p.HDTV.X264.RLS" part. For this to work I have to name my NZB's like Show.Name.S0xE0x - 720p.HDTV.X264.RLS.

To fix the " - " in the file name I made a little user script that I attached to the Series category:

Code: Select all

cd /d %1
set oldname=%3
set newname=%oldname: - =.%
if exist %oldname%.mkv ren %oldname%.mkv %newname%.mkv
if exist %oldname%.avi ren %oldname%.avi %newname%.avi
if exist %oldname%.mpg ren %oldname%.mpg %newname%.mpg
if exist %oldname%.nfo ren %oldname%.nfo %newname%.nfo
if exist %oldname%.ts ren %oldname%.ts %newname%.ts
I hope I can make someone happy with this.

Grtz, Brainpower

Re: [Windows] My way to rename an episode the way I want it

Posted: November 3rd, 2009, 3:41 am
by Powdor
Brainpower,

This might be what I am looking for. As I want to have the episodes named the way the are. I would like to see sorting into folders only if possible. Well that is because I think I need it this way. I am using Media Portal and have recently added a feature to download subs from bierdopje to support dutch  ;D. Btw. it was adopted by the original programmer of subtitledownloader for MP-TVSeries and available for download now.

But This always downloads the files in original name. I have no problem finding the right subtitle form MP. But as my episodes are renamed the filenames no longer match and MP will not know that it has a valid subtitle file to use. Any ideas on just sorting the tv serie files but not renaming them?

Re: [Windows] My way to rename an episode the way I want it

Posted: November 7th, 2009, 3:36 pm
by Brainpower
Hi Powdor,

I'm not sure if I understand what you want. As I read it the only thing you want is the sorting and nothing of the renaming part I made.
If that is what you want, that is exactly what sabnzbd does by default.

Just put %sn/Season %0s/ as parsing method and the TV sorting only does the folder part and leaves the filename as it originally was.

Reason that I added the renaiming part is that I often see filenames on nzb sites depicted like RLS-x264-Show.Name.102 and I want to be 100% sure that the final filename is Show.Name.S0xE0x.720p.HDTV.X264-RLS.

Re: [Windows] My way to rename an episode the way I want it

Posted: April 18th, 2010, 4:09 am
by DarkPhalanx
Can i make this work to name them like this?
Legend of the Seeker - S02E02 - 720p hdtv x264-2hd


and the following :(
CMD does not support UNC paths as current directories