Movie Sorting (more specifically just renaming them, really)

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.
foxracinginc
Newbie
Newbie
Posts: 7
Joined: September 23rd, 2012, 4:58 am

Movie Sorting (more specifically just renaming them, really)

Post by foxracinginc »

Version: 0.7.3
OS: Windows 7 Pro x64
Install-type: Windows Installer
Skin (if applicable): Default
Firewall Software: None
Are you using IPV6?: No
Is the issue reproducible? yes

Hi!
I tried SABnzbd for the first time two days ago and immediately fell in love with it. Everything works like a charm, even in conjuntion with SickBeard. The one thing that i can't seem to get working properly is Movie Sorting. All i really want is for SABnzbd to unpack the movie to it's destination folder (defined by the category "movies-us") and rename it to match the .nzb filename used to download it. I tried to achieve that result by checking "enable movie sorting" for the category "movies-us" using these sort strings:

%.title.%y.%ext (this wouldn't be perfect but i could live with it) (the processed result looks good for this when i enter an .nzb filename as test data)
%fn.%ext (this would be perfect) (the processed result just shows "Original filename.ext", no matter what i enter as test data)

but it won't work. the movie is being downloaded, unpacked, and moved to it's category's destination folder (tried defining it with and without an asterisk at the end, doesn't make a difference), but it's not being renamed at all.

For example:

.nzb filename: Crazy.Movie.Of.Some.Sort.2008.1080p.BluRay.x264-iND.nzb
category "movies-us" destination: D:\MEDiA\Movies US
sort string: %fn.%ext
name of the movie inside the archive: ind-cmoss.mkv

the category is assigned correctly but what i end up with after unpacking etc. is: D:\MEDiA\Movies US\ind-cmoss.mkv

also it's hard to find information on the sorting feature. how it works (how does it know which of the extracted files is the actual movie that it'S supposed to sort/rename? by filesize?), which criteria have to be met for it to work (should there be a dest. folder set for the category? with asterisk or without?) or how to know if it did anything at all (should there be log-entries created by the sorting feature? like "successfully renamed ind-cmoss.mkv to Crazy.Movie.Of.Some.Sort.2008.1080p.BluRay.x264-iND.nzb").

Any help would be greatly aprecciated! Thanks.
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Movie Sorting (more specifically just renaming them, rea

Post by shypike »

I assume you mean Generic sorting?
(The wording in "Config->Sorting" is not consistent.)
First of all, don't use %fn, because it means "original filename" and that's not what you are looking for.
%title.%ext will give you what you want, unless SABnzbd cannot determine the main file representing the movie.
The way to determine what is the main file is by checking for a minimum size.
Currently the default for this size is 100M, which is rather high.
You can lower this value to, say, 10M in Config->Special item movie_rename_limit.

The current method is a bit clumsy and will be reviewed for a later release.
foxracinginc
Newbie
Newbie
Posts: 7
Joined: September 23rd, 2012, 4:58 am

Re: Movie Sorting (more specifically just renaming them, rea

Post by foxracinginc »

thanks a lot! the minimum filesize was keeping sabnzbd from renaming my movies since i was testing the various settings with really small files. i realize now that %fn means the original filename of the unpacked file, not of the archive or the .nzb ... makes sense, too ;) so basically there's no way to have sabnzbd rename the unpacked movies to match the .nzb files used to download them? cause that'd be exactly what i was looking for...
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Movie Sorting (more specifically just renaming them, rea

Post by shypike »

foxracinginc wrote:so basically there's no way to have sabnzbd rename the unpacked movies to match the .nzb files used to download them?
That already what's happening when you use %title.%ext
What happens in your case?
foxracinginc
Newbie
Newbie
Posts: 7
Joined: September 23rd, 2012, 4:58 am

Re: Movie Sorting (more specifically just renaming them, rea

Post by foxracinginc »

.nzb: Crazy.Movie.Of.Some.Sort.2008.1080p.BluRay.x264-iND.nzb
packed file in archive: ind-cmoss.mkv
what sabnzbd renames it to [ %.title.%y.%ext ] : Crazy.Movie.Of.Some.Sort.2008.mkv
what i'd like sabnzbd to rename it to: Crazy.Movie.Of.Some.Sort.2008.1080p.BluRay.x264-iND.mkv

if possible, i'd like to retain as much information as possible in the filename so i know if it's a proper, which quality, released by whom etc.
but if that's not possible i'll still be happy having found my way to sabnzbd :)
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Movie Sorting (more specifically just renaming them, rea

Post by shypike »

OK, I get it now.
I keep forgetting that Generic sorting considers 4 digits to be a year and that a year
separates the actual title from the rest. Not sure if that is always a sensible assumption...
I'll see what I can do about this.
foxracinginc
Newbie
Newbie
Posts: 7
Joined: September 23rd, 2012, 4:58 am

Re: Movie Sorting (more specifically just renaming them, rea

Post by foxracinginc »

an additional pattern key that posts the whole filename disregarding any 4-digit-numbers would be brilliant. who knows, might be added in the future, right? ;)
thanks again for your quick response, i donated a little something too, to keep the project going...
LV-426
Newbie
Newbie
Posts: 16
Joined: April 16th, 2013, 2:37 pm

Re: Movie Sorting (more specifically just renaming them, rea

Post by LV-426 »

Sorry to activate an old thread but unless I've missed something this still isn't possible in SAB, correct?

Is it planned to add this feature renaming files to exactly the same name as the nzb name?


Thanks
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Movie Sorting (more specifically just renaming them, rea

Post by shypike »

%dn : Original foldername
LV-426
Newbie
Newbie
Posts: 16
Joined: April 16th, 2013, 2:37 pm

Re: Movie Sorting (more specifically just renaming them, rea

Post by LV-426 »

You mean I can use "%dn.%ext" because I have already tried that before and tested again just now and it didn't work for me, the original file named remained the same.

Just to be clear using the sample above, if nzb is named

Crazy.Movie.Of.Some.Sort.2008.1080p.BluRay.x264-iND.nzb

I want video file name to be

Crazy.Movie.Of.Some.Sort.2008.1080p.BluRay.x264-iND.mkv
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Movie Sorting (more specifically just renaming them, rea

Post by shypike »

I get what you want it to do, but I haven't had time to test this.
If I remember correctly, you should use %dn on its own (so without the .%ext part).
I'll check later.
LV-426
Newbie
Newbie
Posts: 16
Joined: April 16th, 2013, 2:37 pm

Re: Movie Sorting (more specifically just renaming them, rea

Post by LV-426 »

I did actually try both with and without ".%ext", using it without I end up with an extra folder with the nzb name.

Thanks for your help its appreciated :)
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Movie Sorting (more specifically just renaming them, rea

Post by shypike »

After checking the implementation I must conclude that %dn only works in a folder context.
So in something like "%dn/%fn.ext".
I'll see if your kind of use can be implemented in the next release.
User avatar
shypike
Administrator
Administrator
Posts: 19774
Joined: January 18th, 2008, 12:49 pm

Re: Movie Sorting (more specifically just renaming them, rea

Post by shypike »

Tested again.
The %dn name does actually work as you thought it should.
At least for the kind of downloads that I tested.
Please email an example NZB file, using the exact same name as you used to [email protected]
Include also the URL of this message.
LV-426
Newbie
Newbie
Posts: 16
Joined: April 16th, 2013, 2:37 pm

Re: Movie Sorting (more specifically just renaming them, rea

Post by LV-426 »

Sorry now I'm confused lol

You mean %dn should work with or without %ext included ?
Last edited by LV-426 on April 17th, 2013, 3:24 pm, edited 2 times in total.
Post Reply