Issue with sorting using fn for dir name?

Get help with all aspects of 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
ezelkow1
Newbie
Newbie
Posts: 2
Joined: September 22nd, 2022, 10:46 pm

Issue with sorting using fn for dir name?

Post by ezelkow1 »

I had been trying to use fn for the dir name for my downloads:
%fn/%title (%y).%ext

It appears that it renames the file properly how I want but it generates a directory literally named "%fn". So I wasnt sure if you just weren't allowed to use fn for the dir name or if I was doing something wrong?

I usually like my setup to be something like movie_name_year_etc_etc/renamed_movie (replace underscores with dots, the dots make phpBB think it's a link)
Which sab seems to do in it's intermediate/temporary directory, but I couldnt get it to do it on final output
User avatar
safihre
Administrator
Administrator
Posts: 5338
Joined: April 30th, 2015, 7:35 am
Contact:

Re: Issue with sorting using fn for dir name?

Post by safihre »

Yes you can only use %fn for the filename, you should use %dn for the directory.
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
ezelkow1
Newbie
Newbie
Posts: 2
Joined: September 22nd, 2022, 10:46 pm

Re: Issue with sorting using fn for dir name?

Post by ezelkow1 »

safihre wrote: September 24th, 2022, 4:03 am Yes you can only use %fn for the filename, you should use %dn for the directory.
thanks, so is there anyway to get a dir name that is closer to what is used during unpacking? since using dn ends up with spaces between each component rather than the original representation
User avatar
safihre
Administrator
Administrator
Posts: 5338
Joined: April 30th, 2015, 7:35 am
Contact:

Re: Issue with sorting using fn for dir name?

Post by safihre »

If you want the name during Unpacking, then just don't use Sorting at all.
Or only use %fn, don't specify the directory name and it should use the original name automatically.
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
Post Reply