Page 1 of 2

Movie Sorting (more specifically just renaming them, really)

Posted: September 23rd, 2012, 5:32 am
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.

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

Posted: September 23rd, 2012, 6:08 am
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.

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

Posted: September 24th, 2012, 11:56 am
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...

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

Posted: September 24th, 2012, 1:48 pm
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?

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

Posted: September 24th, 2012, 3:24 pm
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 :)

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

Posted: September 24th, 2012, 3:30 pm
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.

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

Posted: September 25th, 2012, 6:21 am
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...

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

Posted: April 16th, 2013, 3:02 pm
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

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

Posted: April 16th, 2013, 3:42 pm
by shypike
%dn : Original foldername

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

Posted: April 16th, 2013, 5:09 pm
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

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

Posted: April 17th, 2013, 10:33 am
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.

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

Posted: April 17th, 2013, 11:31 am
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 :)

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

Posted: April 17th, 2013, 12:58 pm
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.

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

Posted: April 17th, 2013, 1:40 pm
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.

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

Posted: April 17th, 2013, 2:00 pm
by LV-426
Sorry now I'm confused lol

You mean %dn should work with or without %ext included ?