TV Sorting Questions

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
MageMinds
Release Testers
Release Testers
Posts: 73
Joined: August 14th, 2008, 6:37 am

TV Sorting Questions

Post 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
Last edited by MageMinds on August 6th, 2009, 3:29 pm, edited 1 time in total.
User avatar
switch
Moderator
Moderator
Posts: 1380
Joined: January 17th, 2008, 3:55 pm
Location: UK

Re: TV Sorting Questions

Post 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.
MageMinds
Release Testers
Release Testers
Posts: 73
Joined: August 14th, 2008, 6:37 am

Re: TV Sorting Questions

Post 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
Last edited by switch on August 8th, 2009, 6:43 am, edited 1 time in total.
User avatar
switch
Moderator
Moderator
Posts: 1380
Joined: January 17th, 2008, 3:55 pm
Location: UK

Re: TV Sorting Questions

Post 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.
MageMinds
Release Testers
Release Testers
Posts: 73
Joined: August 14th, 2008, 6:37 am

Re: TV Sorting Questions

Post by MageMinds »

Thanks you for the clarification on the processing of the TV Sorting, that help me create my custom script...
MageMinds
Release Testers
Release Testers
Posts: 73
Joined: August 14th, 2008, 6:37 am

Re: TV Sorting Questions

Post 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!
Post Reply