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

Running script: sabToAniDB.py, for 2 days now #8

Closed enaba closed 12 years ago

enaba commented 12 years ago

Hi,

I am using SABnzbd, and was trying this post scrip, i just downloaded the files and copied them is the script folder (without editing anything).

I tied to run it, but after the download its just telling me running script and that's it nothing more.

can you please advice

Benni-chan commented 12 years ago

you need to edit the anidb.cfg file. it at least needs your anidb.net username and password also you should edit the path, were the completed files should be copied to.

also make sure to use the sabtoanidb.py file in sabnzbd.

i should probably write a better readme soon :)

enaba commented 12 years ago

its giving me an error

Hashed: ed2k://|file|E:\Downloads\Anime\HorribleSubs Naruto Shippuuden - 286 480p[HorribleSubs]_NarutoShippuuden-286[480p].mkv|150099659|3359bcba17236caa535a973f6302f98a| Identified: [HorribleSubs] Naruto Shippuuden (Naruto Shippuden) - 286 - Torimodosenai Mono (Things You Can`t Get Back) Traceback (most recent call last): File "C:\SickBeard-win32-alpha-build496\autoProcessTV\anidb.py", line 213, in elif (rename['tvformat']): KeyError: 'tvformat'

Benni-chan commented 12 years ago

ups :) I think I found the bug. sorry about that. but really curious, that this didn't occur before.

i'll push an update in a few minutes.

enaba commented 12 years ago

Thank you so much, please let me know when finish it.

sorry about the trouble

Benni-chan commented 12 years ago

please download the new default-config file and make your changes again. report back, if this helps.

Benni-chan commented 12 years ago

btw, so don't have to redownload the file to test the script, simply run this command from commandline:

python C:\SickBeard-win32-alpha-build496\autoProcessTV\sabToAnidb.py FOLDER_CONTAINING_THE_DOWNLOADED_ANIME

enaba commented 12 years ago

Tried it again but i didn't work

Logged in as user: enaba Hashed: ed2k://|file|E:\Downloads\Anime\Taka Naruto Shippuuden 278 480p[Taka]_Naruto_Shippuuden278[480p][B361604C].mp4|199616184|9f4ba0d294dd3db56bd18d3c1c2c0a23| Identified: [Taka] Naruto Shippuuden (Naruto Shippuden) - 278 - Nerawareta Iryou Ninja (Medic Ninja in Danger) Traceback (most recent call last): File "C:\SickBeard-win32-alpha-build496\autoProcessTV\anidb.py", line 213, in elif (rename['tvformat']): KeyError: 'tvformat'

I am a bit lost

how can i run the command line python C:\SickBeard-win32-alpha-build496\autoProcessTV\sabToAnidb.py

FOLDER_CONTAINING_THE_DOWNLOADED_ANIME E:\Downloads\Anime

Benni-chan commented 12 years ago

open a command line (start->run->cmd) and copy the command in here python C:\SickBeard-win32-alpha-build496\autoProcessTV\sabToAnidb.py E:\Downloads\Anime

back to your error: ok, so it seems like it isn't the case sensitive config parser. well, that would have been easy... you have your anidb.cfg file in the same folder as the anidb.py file?

i currently have no windows system around, so i can't test everything about windows compatibility myself, but there are several people using it without problem...

one more thing, which python version are you using? (type "python --version" in your command line)

enaba commented 12 years ago

I checked its on the same folder, there is a anidb folder just as the respiratory

It showed me the same error

the version is 2.7.3

Benni-chan commented 12 years ago

the python version is probably the problem. i'm using 2.6.6. there has been some changes in 2.7.3 about this config-parser i'm using. i'll have to take a closer look on this. but sadly i don't have time for that today.

in the meantime you could try to revert to python 2.6.6. (sabnzbd and those other tools should work without problems with that version, too.)

enaba commented 12 years ago

[AniDB] username =enaba password =ooooooo suffix = avi ogm mkv mp4 wmv m4v directory = E:\Downloads\Anime tvformat = %ATe% - %EpNo%%Ver% - %ETe% [%GTs%][%FVideoRes%][%Source%]%Cen%[%FCRC%] movieformat = %ATe% %EpNo%%Ver% [%GTs%][%FVideoRes%][%Source%]%Cen%[%FCRC%] ovaformat = %ATe% %EpNo%%Ver% [%GTs%][%FVideoRes%][%Source%]%Cen%[%FCRC%]

[move] foldername = E:\Downloads\Anime %ATe%

[integration] sabtoanidb_switches = --recursive --rename --move --delete --add --watched --no-color

Benni-chan commented 12 years ago

you should not post your password so openly :) i edited it out

enaba commented 12 years ago

ups :) wrote my password, but changed it :)

enaba commented 12 years ago

lol thanks, so you think i wrote something wrong ?

Benni-chan commented 12 years ago

the directory config should not be your download directory, but the folder where you want to store your anime...

then there is a big error in your config. you removed the [rename] tag. this is important :) use this config:

[AniDB] username =enaba password =ooooooo suffix = avi ogm mkv mp4 wmv m4v directory = E:\Downloads\Anime

[rename] tvformat = %ATe% - %EpNo%%Ver% - %ETe% [%GTs%][%FVideoRes%][%Source%]%Cen%[%FCRC%] movieformat = %ATe% %EpNo%%Ver% [%GTs%][%FVideoRes%][%Source%]%Cen%[%FCRC%] ovaformat = %ATe% %EpNo%%Ver% [%GTs%][%FVideoRes%][%Source%]%Cen%[%FCRC%]

[move] foldername = E:\Downloads\Anime %ATe%

[integration] sabtoanidb_switches = --recursive --rename --move --delete --add --watched --no-color

enaba commented 12 years ago

trying it now

Benni-chan commented 12 years ago

ah, saw an other error. the foldername should only be the renaming tags without the complete folder-tree. so only use foldername = %ATe%

this is only the naming pattern for the subfolder, which will be used when moving the anime inside the folder configured in the the directory config

enaba commented 12 years ago

wow your amazing, its working

THANK YOU SO MUCH

Benni-chan commented 12 years ago

glad i could help :)