Last active
September 15, 2017 22:50
-
-
Save gdiaz384/ba8dfc45a44f92840aaf2617f802351f to your computer and use it in GitHub Desktop.
crunchy-xml-decoder Install Instructions
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
install python 2.7.x (https://www.python.org/downloads/release/python-2713/, add to path + compile) | |
install git or DL the portable version https://git-scm.com/download/win (Do not download the .zip from the webpage, the CRL line endings will be wrong.) | |
log out and log back to update the %path% enviornmental variable | |
windows key + cmd + enter | |
cd ~ | |
mkdir Documents\GitHub | |
cd Documents\GitHub | |
set gitexe=C:\Users\Public\Downloads\PortableGit-2.14.1-64-bit.7z\bin\git.exe | |
"%gitexe%" clone clone https://github.com/jaw20/Crunchyroll-XML-Decoder.g | |
or | |
git clone https://github.com/jaw20/Crunchyroll-XML-Decoder.git | |
-This will create a folder called Crunchyroll-XML-Decoder | |
cd Crunchyroll-XML-Decoder | |
start . | |
The module detection code is buggy, so delete it and install the dependencies manually. | |
-open crunchy-xml-decoder\functtest.py | |
-Note: It is possible to put a # at the start of the line to comment out an entire line. | |
-Eelete or comment out(#) the "Installing Cfscrape" section | |
The mkvmerge code is not very robust, so delete\comment the "cleanup" section as well. | |
-Open ultimate.py and go to the section that says: print 'Starting Final Cleanup' | |
install the dependencies: | |
Install node https://nodejs.org/en/download/ | |
-python -m pip install --upgrade pip | |
-pip install cfscrape | |
-pip install m3u8 | |
-pip install wget | |
-go to https://pypi.python.org/pypi/lxml/3.2.5 ->"Download" + install | |
-pip uninstall pycrypto | |
-easy_install pycrypto | |
or | |
-easy_install http://www.voidspace.org.uk/downloads/pycrypto26/pycrypto-2.6.win32-py2.7.exe | |
-easy_install http://www.voidspace.org.uk/downloads/pycrypto26/pycrypto-2.6.win-amd64-py2.7.exe | |
Create a crunchyroll account if you do not already have one (non-premium still works) | |
start crunchy-xml-decoder.bat or crunchy-xml-decoder.py | |
log in | |
start crunchy-xml-decoder.py | |
select option 1 | |
copy an episode URL from crunchyroll | |
paste it into the terminal window | |
look for the output under \exports | |
Tips: | |
1) To change the container from .ts to mp4/mkv use ffmpeg or mkvmerge/mkvmergegui | |
-mkvmerge -o out.mkv video.ts subtitles.ass | |
-ffmpeg -i video.ts -c copy out.mp4 | |
-ffmpeg -i video.ts -i subtitles.ass -c copy out.mkv | |
2) For batch mode of subtitles only (Windows) | |
dump all the URLs for episodes in "urls.txt" | |
for /f %i in (urls.txt) do call crunchy-xml-decoder.py --url "%i" -s | |
omit the -s for default (videoDL) mode |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment