Audio/video stream recording forums (http://stream-recorder.com/forum/index.php)
-   Video stream recording (http://stream-recorder.com/forum/forumdisplay.php?f=4)
-   -  

www.crunchyroll.com: How to download/capture/save/get/copy subtitles from CrunchyRoll

(http://stream-recorder.com/forum/showthread.php?t=9860)

any ANONYMOUS forum user 10-12-2011 07:45 PM

Re: www.crunchyroll.com: How to download/capture/save/get/copy subtitles from Crunchy


 
Yea. How did you make it work Random? Please share

Vaxtor76 04-15-2012 02:33 PM

Re: www.crunchyroll.com: How to download/capture/save/get/copy subtitles from Crunchy


 
Anyone know if keepvid will support other language subtitles? For example: http://www.crunchyroll.com/time-of-e...1-akiko-452708

shinji257 04-22-2012 07:05 PM

Re: www.crunchyroll.com: How to download/capture/save/get/copy subtitles from Crunchy


 
Thanks very much for how to dump those subs tRon. It worked perfectly and I actually use the 3rd method to get the subtitle id. Still works to this day. The subtitle url is also good. This is getting me the original ass format subs and works fine.

The only things I had to do was make a couple of edits to crunchyDec.py. First change V4 to V4+ (line 40) then change all references to ", " so it shows as ",". Basically remove the space. That will be on line 46. It will make the output file actually work. This may be a change from previously though so I don't know how well it would work from older subs but I tested it on decoded subs for Saki Episode of Side A and it worked great. Aegisubs loads it well and it renders properly in my media players.

I also compiled it using py2exe (Py2.7 x64) to remove the need to call python directly (just a convenience).

Here is the code lines original vs changed so you can see it better.

Line 40
original:
Code:

styles = "[V4 Styles]\nFormat: Name, Fontname, Fontsize, PrimaryColour, SecondaryColour, OutlineColour, BackColour, Bold, Italic, Underline, StrikeOut, ScaleX, ScaleY, Spacing, Angle, BorderStyle, Outline, Shadow, Alignment, MarginL, MarginR, MarginV, Encoding\n";
changed:
Code:

styles = "[V4+ Styles]\nFormat: Name, Fontname, Fontsize, PrimaryColour, SecondaryColour, OutlineColour, BackColour, Bold, Italic, Underline, StrikeOut, ScaleX, ScaleY, Spacing, Angle, BorderStyle, Outline, Shadow, Alignment, MarginL, MarginR, MarginV, Encoding\n";
Line 46
original:
Code:

styles += "Style: " + style['name'] + ", " + style['font_name'] + ", " + style['font_size'] + ", " + style['primary_colour'] + ", " + style['secondary_colour'] + ", " + style['outline_colour'] + ", " + style['back_colour'] + ", " + style['bold'] + ", " + style['italic'] + ", " + style['underline'] + ", " + style['strikeout'] + ", " + style['scale_x'] + ", " + style['scale_y'] + ", " + style['spacing'] + ", " + style['angle'] + ", " + style['border_style'] + ", " + style['outline'] + ", " + style['shadow'] + ", " + style['alignment'] + ", " + style['margin_l'] + ", " + style['margin_r'] + ", " + style['margin_v'] + ", " + style['encoding'] + "\n"
changed:
Code:

styles += "Style: " + style['name'] + "," + style['font_name'] + "," + style['font_size'] + "," + style['primary_colour'] + "," + style['secondary_colour'] + "," + style['outline_colour'] + "," + style['back_colour'] + "," + style['bold'] + "," + style['italic'] + "," + style['underline'] + "," + style['strikeout'] + "," + style['scale_x'] + "," + style['scale_y'] + "," + style['spacing'] + "," + style['angle'] + "," + style['border_style'] + "," + style['outline'] + "," + style['shadow'] + "," + style['alignment'] + "," + style['margin_l'] + "," + style['margin_r'] + "," + style['margin_v'] + "," + style['encoding'] + "\n"
If you want to build a exe file from the original script files you can do it with any python version that can run this script directly. You also need the appropriate py2exe version already installed. I'm not going to walk you through on that part as it's pretty straight forward.

Here is the setup.py file. Drop it in the same folder as where you have all the other .py files from the script.
Code:

from distutils.core import setup
import py2exe

setup(console=['decode.py'])

Run it as: python setup.py py2exe

This should create a dist folder with the resulting files in it. It will also print out any dll dependencies that have resulted. The compiled files can be run on any computer without the need to have python running on it.

shinji257 04-23-2012 10:44 PM

Re: www.crunchyroll.com: How to download/capture/save/get/copy subtitles from Crunchy


 
I made a modified version of the crunchyroll subtitle decryptor on page 2. My version automatically determines the subtitle id (english subs only) and pulls it. Save file is automatically determined from the episode title (series + episode #) but if the file exists gives an opportunity to rename. It will not overwrite pre-existing files.

Use it like this:
python decode.py url

Where url is the actual streaming url. This works to grab subtitles for episodes that are member only as well without having to login (the page still gives the subtitle id).

http://dl.dropbox.com/u/1078975/crunchy_xml_decoder.zip


All times are GMT -6. The time now is 11:13 PM.