[Linux] [design-stage] Scriptsuite for both SabNZBD and Torrentflux-b4rt

Come up with a useful post-processing script? Share it here!
Post Reply
Shady
Newbie
Newbie
Posts: 24
Joined: June 20th, 2009, 9:00 pm

[Linux] [design-stage] Scriptsuite for both SabNZBD and Torrentflux-b4rt

Post by Shady »

Hi everyone,

I use both sabnzbd and torrentflux for ease and comfort. Mainly i use torrentflux for download anime but it could also be used to download any number of things.
Anyway this is an outline of the scripts actions below. This is still within the limits of the things i can script. Looking for new fresh idea's :)
Please comment on what should be added or what other media could be scanned/parsed.

This will be compatible to Torrentflux-b4rt & SABnzbd
This will be an Output script, that is there will be a input script after this has been made that auto-downloads movies/anime/tv from torrents or NZB. Regardless if you have newzbin or not (though it will help)

ManualCheck.log is a file that get's the directory and file information of files we couldn't identify
ManualCheck.php is a approachable php file from (web or localhost, with password):
It has a filemanager so you can download/upload stuff. You can also rename and move.
The files it has in the .log will be especially marked as not being Sorted, you will be given the option to Sort or go through the post-processing-process again.
You can be notified by email that there is an unsorted media.

Music
Look for .mp3 files
if can't find mp3 information online:
If .jpg is in same directory give IDtag this .jpg as a cover
If it has found info
Update data in .mp3 with data found on the web.
Put in Sorted directory.
With Directory: Artist/Album/01 Title.ext
Still no info
Move to Unsorted put info in ManualCheck

Video-
Check nfo for imdb url. If found send to Movies
If filename has S*E* move to Tv
If none of the above move to possibility that this is Anime if filesize is limited DVD
If extension is .mkv/.avi/.ogm/.mp4 Check width of file. if 1920 go to 1080p, if 720 go to 720p,
if filesize < 1300 and extension is .avi/.ogm/.mp4 move to XviD
notify XBMC
[Optional] If configured run background process to encode a Android/Iphone version. Make directory Mobile and encode. Make nfo to let xbmc know it can skip this.
Tv
If not done by SABnzbd rename properly.
Parse TheTVDB for information for xbmc and renaming.
Rename to Show - S01E01 - EpisodeTitle.ext
notify XBMC
[Optional] If configured run background process to encode a Android/Iphone version. Make directory Mobile and encode. Make nfo to let xbmc know it can skip this.
Anime
Try to get information from anime. Usually Anime is named [Group]Anime - Ep[stuff][stuff].mkv
Check anidb.net with the file to get information (anidb is wonderful, always get's results!)
If no result found (then were probably to fast for anidb. put file in a log to keep checking every half hour)
If not found after 1 max 2 days then move to possibility that this is unknown to us put in Manualcheck.log
              [Optional] If configured run background process to encode a Android/Iphone version. Make directory Mobile and encode. Make nfo to let xbmc know it can skip this.
Games.
If ISO found and no nfo assume it's a game.
If nfo found parse for websites like gamespot etc etc to make sure it's a game.
If not mark this directory as Probable Game in ManualCheck
Apps.
Everything zip and exe. Try to fluff up directory's if any. if found keygen put it in directory Keygen and put everything else in Program. put all .txt and .nfo in Info
Post Reply