Page 1 of 1

TV Sorting Questions

Posted: August 6th, 2009, 2:57 pm
by MageMinds
Hi everybody, I have a few question regarding the TV Sorting.

My questions is:
1. When does the TV Sorting happen, after the post-processing script is done?
2. Where does it takes its base directory, in the TV category?

I've never used it before I've used a custom script instead to move my downloaded shows, but now I would like to begin using TV Sorting, but generally show that I download have different naming convention for the filename, but my script change the filename to the name of the job that is almost every time all in the same format with capitals, tags and everything. I'd like to keep my renaming post processing and then have TV Sorting to send the file into the right sub-directory. I will use the "%sn/Season %s/%fn" criteria to keep my filename.

Here is the result of my custom script, look at the rename line...

Code: Select all

========================================================================================================
[Config.SourcePath] F:\downloads\Newsgroups\complete\TV\Prototype.This.S01E01.DVDRip.XviD-aAF\
[Config.DestPath]   F:\Media Center\TV Shows\
========================================================================================================
[Move] Moved file \aaf-prototype101.avi to the destination folder
[Rename] Rename file aaf-prototype101.avi to Prototype.This.S01E01.DVDRip.XviD-aAF.avi
[Delete] Deleting file aaf-prototype101.nfo
[Delete] Deleting file aaf-prototype101.sfv
[Delete] Deleting file Prototype.This.S01E01.DVDRip.XviD-aAF.nzb
[CleanUp] Deleting the job folder
========================================================================================================
Thanks in advance

MageMinds

Re: TV Sorting Questions

Posted: August 6th, 2009, 5:40 pm
by switch
1. When does the TV Sorting happen, after the post-processing script is done?
The sorting stage happens before the user-script is run. It actually takes place just after the category path has been worked out, before the unrar stage.
2. Where does it takes its base directory, in the TV category?
The base directory is whatever category it is assigned too, yes. The example path shown just uses the default complete director as it is unknown what category the user will be using.

Re: TV Sorting Questions

Posted: August 7th, 2009, 7:20 am
by MageMinds
If I understand correctly when using the TV Sorting, the rar and par2 files when completed are sent directly to the right sorted directory and I assume that the functionality of executing User Script is still active and we'll receive the right sorted path, right?

What happen when a show doesn't have a season, I have some filters that download documentary and they are named like :
"*******"

Does it simply put the file in the base directory?

MageMinds

Re: TV Sorting Questions

Posted: August 8th, 2009, 6:43 am
by switch
Please do not post release names, it is against our forum rules.

SABnzbd would not sort that file as it does not follow the format 1x05 or S01E01 so it will just be treated like any other download.

At post processing stage, sabnzbd will extract the rar files from the incomplete folderm to your final sorting destination inside a temporary folder that is then created. Once complete the files are moved up a directory out of the extra temp folder and it is deleted.

Re: TV Sorting Questions

Posted: August 8th, 2009, 9:25 pm
by MageMinds
Thanks you for the clarification on the processing of the TV Sorting, that help me create my custom script...

Re: TV Sorting Questions

Posted: August 10th, 2009, 9:32 am
by MageMinds
I've tried to create a script to rename my shows using the job name, but I find that's impossible giving the parameters I'm receiving for post processing.

I'm receiving only the dest path, that would contain all the previously downloaded show of the same season, so I can't rename those file using the job name, they would end up having all the same name.

So I'm asking for a new parameter in the TV Show sorting, I would like to be able to rename my files using the job name something like that %jobname.%ext

Usually the job name is The.MageMinds.Show.S01E01.720p.HDTV-MM and the filename could be mm-tms1x01.mkv or it could be the.mageminds.show.s01e01.720p.hdtv-mm.mkv either way I find that the job name is nicer than those filename we find inside the RAR file.

Thanks!