Closed saitoh183 closed 12 years ago
i just commited the pull request and it seems, it breaks a lot of things... so it isn't really a windows/unix problem. i'm now working on the fix
ok, well let me know when i can test again since the only way is to download something via Sab...unless i can manually use it to process already downloaded files that didnt work the first time
you can run the script from command line to process an already downloaded anime. just run "sabtoanidb.py PATH_TO_DOWNLOAD_FOLDER" but currently, that fails, because of the bug in sabtoanidb.py
ok, good to know. will wait for your ok :)
ok, please download the new scripts and try it in windows
also, leave sabtosickbeard_script in the config empty for now... i must first research, how this added integration really works. but so far it seems, the config only wants a "true" or "false", not the executable.
to run the script from sab, just select the sabtoanidb.py script as postprocessing for the anime category in sab.
Seems to work..here is the output:
C:\Media\Scripts>sabtoanidb.py I:\ServerFolders\Download
Logged in as user: saitoh183
Hashed: ed2k://|file|I:\ServerFolders\Download\TastyMelon Black Lagoon OVA - Rob
erta s Blood Trail - 05v2 720p[TastyMelon]_Black_LagoonOVA-_Roberta's_BloodT
rail-05v2[720p][CCD9BE15].mkv|664453009|d58e6471397091c5afb811fa006d9954|
Identified: [TastyMelon] Black Lagoon: Robertas Blood Trail (Black Lagoon: Robe rta
s Blood Trail) - 5 - Codename Paradise, Status MIA (Codename Paradise, Statu
s MIA)
Renaming to: Black Lagoon - Robertas Blood Trail 5v2 [TastyMelon][1280x720][Blu -ray][CCD9BE15].mkv Moving to: D:\Videos\Anime\Black Lagoon - Roberta
s Blood Trail
Added to mylist.
Hashed: ed2k://|file|I:\ServerFolders\Download\TastyMelon Black Lagoon OVA - Rob
erta s Blood Trail - 02v2 720p[TastyMelon]_Black_LagoonOVA-_Roberta's_BloodT
rail-02v2[720p][799FB367].mkv|518289662|3e75c5ad2d9bf2adf43b2bf563225807|
Identified: [TastyMelon] Black Lagoon: Robertas Blood Trail (Black Lagoon: Robe rta
s Blood Trail) - 2 - An Office Mans Tactics (An Office Man
s Tactics)
Renaming to: Black Lagoon - Robertas Blood Trail 2v2 [TastyMelon][1280x720][Blu -ray][799FB367].mkv Moving to: D:\Videos\Anime\Black Lagoon - Roberta
s Blood Trail
Added to mylist.
Hashed: ed2k://|file|I:\ServerFolders\Download\New folder[TastyMelon]_Black_Lag
oonOVA-_Roberta's_BloodTrail-01v3[720p][20C2012E].mkv|590106659|246542486a
02c4ceadcda26058b52cf3|
Identified: [TastyMelon] Black Lagoon: Robertas Blood Trail (Black Lagoon: Robe rta
s Blood Trail) - 1 - Collateral Massacre (Collateral Massacre)
Renaming to: Black Lagoon - Robertas Blood Trail 1v3 [TastyMelon][1280x720][Blu -ray][20C2012E].mkv Moving to: D:\Videos\Anime\Black Lagoon - Roberta
s Blood Trail
Added to mylist.
Hashed 3 files.
but when i check in the destination folder D:\Videos\Anime\Black Lagoon - Roberta`s Blood Trail
the files arent renamed with dashes. its like: TVFormat= %ATe% - %EpNo%%Ver% - %ETe% [%GTs%][%FVideoRes%][%Source%]%Cen%[%FCRC%] Black Lagoon - Roberta`s Blood Trail 1v3 [TastyMelon][1280x720][Blu-ray][20C2012E].mkv
Is there a way for it to send it to the folder called Black Lagoon that is in season division instead of Black Lagoon - Roberta`s Blood Trail with no season folder.
Now in sickbeard Anime version you can choose to have the Absolute number in the files name but you will also have the format SxExx like this:
Black Lagoon - 3x04 - 028 - Oversaturation Kill Box.mkv which = Roberta`s Blood Trail eps 4
Have a look at http://forum.xbmc.org/showthread.php?tid=64587&pid=1211844#pid1211844 might help explain more what i mean.
All my Anime at the moment is in the format of Anime\Anime name\Season X\eps.mkv (using format above). Since Anidb doesnt use seasons im guessing SxExx is difficult to achieve so i dont mind changing my anime formatting to fit the way your script works but i just tested XBMC scraping with anidb and it found Black Lagoon - Roberta`s Blood Trail, added it to the library, but couldnt find fanart nor display episodes in the folder because there is no season folder.
If you use XBMC for anime, how do you setup or deal with with series that have season that are each there own ID
can't find the error with dashes in renaming... it should work just fine. i'll check, once i got a windows machine running again.
i'm not sure, if I can help you with season folders. AniDB doesn't store any season informations. every season is either stored in the same anime (like one piece and naruto) or it gets a new anime (like black lagoon) with prequel and sequel informations. so I assume, that sickbeard anime edition has it's own database for season information
(also, Black Lagoon - Roberta`s Blood Trail is listed as an OVA, not a TV Series)
i'm not using xbmc (or in my case plex) for my anime collection. so far i haven't found it working well with animes... it would not be very hard to add an "season 01" folder to the move-path, if it's an tv series. but you should check the xbmc parser first, how it identifies each episode and matches it with anidb
_Update_ The renaming worked, problem was that i was using a file that was OVA and didnt realize it
windows support is fixed for other problems, please open a new issue report :)
Since the Pull request havent been merge, i decided to do the changes manually. The script however still doesnt work, i get the following error in sab
Traceback (most recent call last): File "C:\Media\Scripts\sabtoanidb.py", line 22, in
retcode = subprocess.call(args)
File "C:\Python27\lib\subprocess.py", line 493, in call
return Popen(_popenargs, *_kwargs).wait()
File "C:\Python27\lib\subprocess.py", line 679, in init
errread, errwrite)
File "C:\Python27\lib\subprocess.py", line 893, in _execute_child
startupinfo)
WindowsError: [Error 193] %1 is not a valid Win32 application
Also in the anidb.cfg, the sickbeard intergreation...i use the exe version of sabtosickbeard, so do i leave it as sickbeard_executable in anidb.cfg and sabtoanidb.py
i have this sickbeard_executable =C:\Media\Scripts\sabToSickBeard.exe in anidb.cfg...is this the correct syntax for the option?