Benni-chan / nzbToAniDB

postprocessing script for animes (to use with sabnzbd+ or nzbget or even as stand alone) to rename files after a sync with anidb.net. files can additionally be renamed via tvdb
24 stars 7 forks source link

KeyError: 'sabtoanidb_switches #11

Closed banankita closed 10 years ago

banankita commented 11 years ago

Hi Benni-chan!

I receive the following error when running the Anidb script

DiskStation> python /volume1/transmission/downloads/autoProcessTV/sabToAniDB.py /volume1/transmission/downloads/complete/[HorribleSubs]\ Fairy\ Tail\ -\ 169\ [720p].mkv/ Traceback (most recent call last): File "/volume1/transmission/downloads/autoProcessTV/sabToAniDB.py", line 26, in command = sys.executable + " " + os.path.join(os.path.dirname(sys.argv[0]), "anidb.py") + " " + config['sabtoanidb_switches'] + " '" + sys.argv[1] + "'" KeyError: 'sabtoanidb_switches'

Does the error pertain to sabtoanidb_switches being in ' ' ? or does it just tell python that its a text string?

Kind regards Peter

Benni-chan commented 11 years ago

the ' ' just tell python, that it's a string, not a variable... do your have the anidb.cfg file in the same folder? the configuration sabtoanidb_switches sets the default tasks, the script should do (hash, rename, move, etc.), when using sabtoanidb.py. otherwise, you could also run anidb.py manually and set the parameters yourself... like: python /volume1/transmission/downloads/autoProcessTV/anidb.py --recursive --rename --move --delete --add --watched /volume1/transmission/downloads/complete/[HorribleSubs]\ Fairy\ Tail\ -\ 169\ [720p].mkv/

banankita commented 11 years ago

Hi Benny!

Yes the anidb.cfg file is in the same folder, nothing in the map structure has been changed. i tried calling the python script with the switches but it tossed up the same error anidb folder

banankita commented 11 years ago

Autoprocess folder anidb cfg file

banankita commented 11 years ago

the init and hash file is inside the anidb folder

Benni-chan commented 10 years ago

not sure, if this is still a problem. if there is a problem with the new version of the script, we can reopen the issue.