TV Sorting not replacing pattern

Report & discuss bugs found in SABnzbd
Forum rules
Help us help you:
  • Are you using the latest stable version of SABnzbd? Downloads page.
  • Tell us what system you run SABnzbd on.
  • Adhere to the forum rules.
  • Do you experience problems during downloading?
    Check your connection in Status and Interface settings window.
    Use Test Server in Config > Servers.
    We will probably ask you to do a test using only basic settings.
  • Do you experience problems during repair or unpacking?
    Enable +Debug logging in the Status and Interface settings window and share the relevant parts of the log here using [ code ] sections.
Post Reply
Wesley
Newbie
Newbie
Posts: 3
Joined: February 27th, 2010, 9:06 am

TV Sorting not replacing pattern

Post by Wesley »

I'm using the following string for the automatic TV sorting:

Code: Select all

%sn/%fn/%fn.%ext
The example reads corretly:

Code: Select all

M:\Downloads\Show Name\file\file.avi 
But the files end up in:

Code: Select all

M:\Downloads\Show Name\%fn\file.avi 
Somehow the first %fn doesn't get replaced properly.

Version: 0.5.0
OS: Vista
Install type: Windows Installer
Skin: default
Last edited by Wesley on February 27th, 2010, 9:27 am, edited 1 time in total.
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: TV Sorting not replacing pattern

Post by shypike »

Problem confirmed.
We are looking for a solution in a later release.
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: TV Sorting not replacing pattern

Post by shypike »

Actually this problem cannot be solved without an extensive redesign of the sorting feature.
You are not supposed to use %fn like this: it should be used in a filename context, not a folder context.

Also, I don't understand the need, why would you want to have the original file name as a folder name?
So when you have the NZB name "My Show S1E1" containing the file "My Show - S1E1 - First one.avi",
you would end up with this: "\path\TV\My Show\My Show - S1E1 - First one\My Show - S1E1 - First one.avi".

Isn't it better to use "%sn/%fn.%ext" ? This would give:
\path\TV\My Show\My Show - S1E1 - First one.avi
Or "%sn/Season %s/%fn.%ext" giving:
\path\TV\My Show\Season 1\My Show - S1E1 - First one.avi
Post Reply