Since I'm using this script for several days now, I think I can release it. It's not complete done yet, but it works. Some part of it is optimized for my UnRaid Server, but should work on any Linux machine (and maybe Windows too. Didn't test it!).
The script will hash your downloaded anime files, check anidb for details and rename and move the files.
So far I only tested the script with TV Shows, not with Movies.
To use the script, extract the zip into your sabnzbd script folder and select sabtoanidb.py as your post processing script in your anime category.
you have to enter your anidb username and password into the config file. also you have to modify the target directory in the config file to tell the script, where your anime folder is. (the script will copy the files to a directory with the name of the anime in that folder.)
you can specify your rename scheme in the config file, too.
there are a lot of tags to use:
- Code: Select all
%ATr%: Anime Name (Romaji)
%ATe%: Anime Name (English)
%ATk%: Anime Name (Kanji)
%ATs%: Anime Name (synonyms) (lists all synoyms currently)
%ATo%: Anime Name (other)
%ETr%: Episode title (romaji)
%ETe%: Episode title (english)
%ETk%: Episode title (kanji)
%GTs%: Group Name (short)
%GTl%: Group Name (long)
%EpHiNo%: Highest (subbed) episode number
%EpCount%: Anime Episode count
%AYearBegin%: The beginning year of the anime
%AYearEnd%: The ending year of the anime
%ACatList%: Category of the Anime
%EpNo%: #File's Episode number
%Type%: Anime type, Value: Movie, TV, OVA, Web
%Depr%: File is deprecated if the value is '1'
%Cen%: File is censored if the value is '1'
%Ver%: File version
%Source%: Where the file came from (HDTV, DTV, WWW, etc)
%Quality%: How good the quality of the file is (Very Good, Good, Eye Cancer)
%AniDBFN%: Default AniDB filename
%CurrentFN%: Current Filename
%FCrc% : The file's crc
%FCRC%: The file's crc in upper letters
%FVideoRes%: Video Resolution (e.g. 1920x1080)
%FALng%: List of available audio languages
%FSLng%: List of available subtitle languages
%FACodec%: Codecs used for the Audiostreams
%FVCodec%: Codecs used for the Videostreams
%suf%: File Suffix
you can download the script here: https://github.com/Benni-chan/SABnzbd-- ... -Anidb.net
PS: I didn't write the complete script myself. A lot of it is based on pyanidb (an older python based anidb client).
PPS: I'm not responsible for any data loss or any other problems you may have from using this scripts.