Page 1 of 1

Last Whitespace ignored in renaming template

Posted: September 27th, 2011, 8:22 pm
by Samkook
The pattern I use for TV shows in the sorting tab is: %sn/%sn - %0sx%0e - .%ext
but the whitespace before the extension is ignored and the result is "Show Name/Show Name - 01x05 -.avi" instead of "Show Name/Show Name - 01x05 - .avi".

This means that I always have to add a whitespace before pasting the episode name which is slightly annoying.
It worked a while ago, or maybe it only worked on windows, I'm not exactly sure(I really shouldn't have been lazy and reported those as soon as I noticed them).

To circumvent that, I tried %sn/%sn - %0sx%0e -{ }.%ext, but the result is the same.

Re: Last Whitespace ignored in renaming template

Posted: September 28th, 2011, 2:31 am
by shypike
These extra spaces are removed because on some OS they cause problems.
Also, it's not what people generally want.

Re: Last Whitespace ignored in renaming template

Posted: September 28th, 2011, 10:34 am
by Samkook
Ahh, so there's no chance of me being able to have this fixed. I would imagine people would want the template to be what they actually type, but if it cause problem on some os, it's understandable that this behavior got changed.

I guess I'll have to try to find a way to rename them automatically with the episode name then.

Re: Last Whitespace ignored in renaming template

Posted: September 28th, 2011, 12:08 pm
by shypike
You can use the %fn replacement, which will give you the original file name.
That often contains the episode name.
Just curious, where do you get the episode name from?

Re: Last Whitespace ignored in renaming template

Posted: September 28th, 2011, 3:40 pm
by Samkook
The episode name very rarely is in the filename, at least in the feeds I used. I was using tvbinz.net until it closed recently and now I'm temporarily using nzbindex.com until I find a better one since this one often catch the joke name of the series.

I get the episodes name manually from thetvdb.com. I know they have an xml API that would make it possible to fetch the episode name automatically, but it's a bit out of my competence to create a script for this since my programming skills are a bit rusty. I'm kind of surprised nobody else though of making one.