Git Product home page Git Product logo

crunchyroll-xml-decoder-py3's Introduction

Crunchyroll-XML-Decoder-py3

ORIGINALLY BY @einstein95

Requires Python modules:

  • Node.js is required for (safe) Javascript execution. Your computer or server may already have it (check with node -v). If not, you can install it with apt-get install nodejs on Ubuntu and Debian. Otherwise, please read ( https://nodejs.org/en/download/package-manager/ )Node's installation instructions.

Requires Python modules(autoinstall dont need to download):

This is a composite of various scripts required to download video files from CrunchyRoll that have been automated with a batch file.

INSTRUCTIONS:

Pre-Setup (Only need to do these once.):

  1. Install Python 3.4.0 or newer
  2. Run crunchy-xml-decoder.bat or crunchy-xml-decoder.py to generate necessary files (settings.ini and cookies)
  3. choices from the option

for Linux user:

you need to prepare wine32 environment:

i'm not that expert in liunix system but thanks to @RGFRv2 he gave me some tips

for those that don't know:

  1. connected directly as root with: dpkg --add-architecture i386 && apt-get update && apt-get install wine32
  2. update in case with: sudo apt-get update

Per-Video Process:

  1. Copy the URL of the CrunchyRoll video you want to download from your web browser
  2. Run crunchy-xml-decoder-py3.bat or crunchy-xml-decoder-py3.py choice 1 and paste link
  3. Download will start automatically. Everything is automated.
  4. Browse to the 'export' folder to view the completed file.

SPECIAL NOTE: There is another batch file in the _run folder.. Run crunchy-xml-decoder-py3.bat or crunchy-xml-decoder-py3.py choice 2 and paste link Just want the subtitles to an episode? OK.. fair 'nuff. Use this.

WHAT IS THE POINT OF THIS SCRIPT? WHAT IS IT ACTUALLY DOING?:

The process of getting a working download from CrunchyRoll is effectively doing the following:

  • Downloading and decrypting subtitles
  • Downloading the video as FLV or MPEG-TS
  • Splitting the FLV/TS file into 264 video and aac audio
  • Merging video, audio, and subtitles into a mkv file
  • Naming the new video something other than 'video.mkv'

NOTES FROM THE AUTHORS:

From the DX author: Yeah, I wrote the basis for this "new 'n' improved version". Basically, I monitored the traffic to and from Crunchyroll while a video was loading, found a few (read: a lot of) similarities, and basically wrote the script to do the same thing, but parse the file and call upon RTMPdump to dump the video (RTMPexplorer was doing the same thing basically).

From the anonymous original author:

I did not write these programs, and I didn't even come up with this method. All I have done is created a few little bat files to bring them together. Original instructions on how this is done can be found here:

http://www.darkztar.com/forum/showthread.php?219034-Ripping-videos-amp-subtitles-from-Crunchyroll-%28noob-friendly%29

DOS Arguments Help:

-h, --help show this help message and exit

-d URL, --download URL Download Crunchyroll Anime Link

-s URL, --subtitle URL Download Crunchyroll Anime Subtitles only

-l usename password, Login with your Crunchyroll Account --Login usename password

-g, --guest Login As Guest

-a URL, --autocatch URL Download an entire Anime

-q [Queue Directory], --queue [Queue Directory] Run List of Crunchyroll Anime Link in queue file

-D, --default Restore Default Settings

--debug Run Code in Debug Mode

What new:

  • new way for login that dont need cfscrape
  • add progressbar to download
  • add color for console
  • use new way to get video url which include Hardsub video and 240p
  • new way to get usa sesson_id
  • add new proxy function
  • cleaned HLS code and removed extra parts, now its faster
  • add Pretty Menu
  • add DASH stream download
  • add YoutubeDL support
  • add Dos argument

What TO-DO:

  • clean the code from unused lines and codes

crunchyroll-xml-decoder-py3's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

crunchyroll-xml-decoder-py3's Issues

Subtitles download error since last update.

Hi.
I'm a french user. Since the last update I get this error after the video download:


---- Downloading Subtitle ----

Traceback (most recent call last):
File "D:\Crunchyroll-XML-Decoder-py3-master\crunchy-xml-decoder-py3.py", line 389, in
menu_test.start_()
File "crunchy-xml-decoder\pretyconsole.py", line 116, in start_
self.run_menu('Main')
File "crunchy-xml-decoder\pretyconsole.py", line 143, in run_menu
output_ = function_[0](*function_[1], **function_[2])
File "crunchy-xml-decoder\ultimate.py", line 427, in ultimate
vilos_subtitle(page_url)
File "crunchy-xml-decoder\altfuncs.py", line 621, in vilos_subtitle
if i["language"] == Loc_lang[config_['language']]:
KeyError: 'Francais'
Appuyez sur une touche pour continuer...

There is no error with english subtitles in option.
Please help!
Thank you.

Wierd Download Error #2

Seems I found another episode from a different series. This time from Yu-Gi-Oh!
From what I'm seeing, it's related to the previous issue to a certain extent, which means there's probably more errors like this, because of poor site maintenance on CR's part.
Episode Link: https://www.crunchyroll.com/yu-gi-oh/episode-31-brutal-heavy-metal-deck-691859

Error:

Booting up...

Now Downloading - Yu-Gi-Oh! Episode 31 - Brutal * Heavy Metal Deck
Exception in thread download_thread_:
Traceback (most recent call last):
File "C:\Program Files\Python37\lib\threading.py", line 917, in _bootstrap_inner
self.run()
File "C:\Program Files\Python37\lib\threading.py", line 865, in run
self._target(*self.args, **self.kwargs)
File "crunchy-xml-decoder\hls
.py", line 95, in download_thread
self.download_part(seg.absolute_uri, output, key, seg.media_sequence, self.tasks1)
File "crunchy-xml-decoder\hls
.py", line 62, in download_part
with open(filename, 'ab') as f_handle:
OSError: [Errno 22] Invalid argument: 'F:\Crunchyroll-XML-Decoder-py3-master\export\Yu-Gi-Oh! Episode - 31 - Brutal * Heavy Metal Deck.ts0'

Traceback (most recent call last):
File "F:\Crunchyroll-XML-Decoder-py3-master\crunchy-xml-decoder-py3.py", line 407, in
make_choise()
File "F:\Crunchyroll-XML-Decoder-py3-master\crunchy-xml-decoder-py3.py", line 376, in make_choise
queueu(os.path.join('.','queue.txt'))
File "F:\Crunchyroll-XML-Decoder-py3-master\crunchy-xml-decoder-py3.py", line 127, in queueu
ultimate(line.rstrip('\n'), '', '')
File "crunchy-xml-decoder\ultimate.py", line 190, in ultimate
download_.video_hls(hls_url, video_input, config_['connection_n_'])
File "crunchy-xml-decoder\hls_.py", line 144, in video_hls
self.fetch_streams()
File "crunchy-xml-decoder\hls_.py", line 126, in fetch_streams
os.rename(self.output+'0',self.output)
OSError: [WinError 123] The filename, directory name, or volume label syntax is incorrect: 'F:\Crunchyroll-XML-Decoder-py3-master\export\Yu-Gi-Oh! Episode - 31 - Brutal * Heavy Metal Deck.ts0' -> 'F:\Crunchyroll-XML-Decoder-py3-master\export\Yu-Gi-Oh! Episode - 31 - Brutal * Heavy Metal Deck.ts'

Unable to create cookie data

Traceback (most recent call last):
File "C:\Users\Owner\Downloads\Crunchyroll-XML-Decoder-py3-master (2)\crunchy-
xml-decoder-py3.py", line 106, in
login('', '')
File "crunchy-xml-decoder\login.py", line 125, in login
userstatus = getuserstatus(False, sess_id_usa)
File "crunchy-xml-decoder\login.py", line 29, in getuserstatus
device_id = cookies_.get('COOKIES', 'device_id')
File "C:\Users\Owner\AppData\Local\Programs\Python\Python37-32\lib\configparse
r.py", line 780, in get
d = self._unify_values(section, vars)
File "C:\Users\Owner\AppData\Local\Programs\Python\Python37-32\lib\configparse
r.py", line 1146, in _unify_values
raise NoSectionError(section) from None
configparser.NoSectionError: No section: 'COOKIES'
Press any key to continue . . .

Download error downloading hard subbed show in Japanese

Got this error trying to download http://www.crunchyroll.com/captain-harlock-arcadia-of-my-youth-endless-orbit-ssx


Booting up...

Traceback (most recent call last):
File "C:\Users\Owner\Downloads\Crunchyroll-XML-Decoder-py3-master (6)\crunchy-
xml-decoder-py3.py", line 407, in
make_choise()
File "C:\Users\Owner\Downloads\Crunchyroll-XML-Decoder-py3-master (6)\crunchy-
xml-decoder-py3.py", line 374, in make_choise
queueu(os.path.join('.','queue.txt'))
File "C:\Users\Owner\Downloads\Crunchyroll-XML-Decoder-py3-master (6)\crunchy-
xml-decoder-py3.py", line 127, in queueu
ultimate(line.rstrip('\n'), '', '')
File "crunchy-xml-decoder\ultimate.py", line 121, in ultimate
hls_url = stream_url[None]
KeyError: None
Press any key to continue . . .

Cannot login

If I try to login I receive this error

Traceback (most recent call last):
File "H:\Crunchyroll-XML-Decoder-master\crunchy-xml-decoder-py3.py", line 113, in
login(username, password)
File "crunchy-xml-decoder\login.py", line 112, in login
sess_id_usa = create_sess_id_usa(payload_usa)
File "crunchy-xml-decoder\login.py", line 155, in create_sess_id_usa
sess_id_usa = usa_session_post.json()['data']['session_id']
KeyError: 'data'

I've no usa proxy or cookies enabled. Latest version.

new mistake

This error started to come out of nowhere today.
Do you have an account [Y/N]?
Traceback (most recent call last):
File "C:\Users\SAO\Music\Crunchyroll-XML-Decoder-py3-master\crunchy-xml-decode
r-py3.py", line 363, in
check_cookies()
File "C:\Users\SAO\Music\Crunchyroll-XML-Decoder-py3-master\crunchy-xml-decode
r-py3.py", line 90, in check_cookies
login('', '')
File "crunchy-xml-decoder\login.py", line 278, in login
generate_sess_id = create_sess_id()
File "crunchy-xml-decoder\login.py", line 242, in create_sess_id
sess_id_data = session.post('http://api.crunchyroll.com/start_session.0.json
', proxies=proxies, params=payload).json()['data']
File "C:\Users\SAO\AppData\Local\Programs\Python\Python37\lib\site-packages\re
quests\models.py", line 910, in json
return complexjson.loads(self.text, **kwargs)
File "C:\Users\SAO\AppData\Local\Programs\Python\Python37\lib\json_init_.py
", line 348, in loads
return _default_decoder.decode(s)
File "C:\Users\SAO\AppData\Local\Programs\Python\Python37\lib\json\decoder.py"
, line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "C:\Users\SAO\AppData\Local\Programs\Python\Python37\lib\json\decoder.py"
, line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
Presione una tecla para continuar . . .

Subtitle download error

Hi

I am trying to download this anime but this season seems to be erroring. Other seasons seem to be ok.

Anime: http://www.crunchyroll.com/a-certain-scientific-railgun/episode-1-railgun-727295

python version=3.8.5 64 bit
OS Version=Linux 5.4.0 52 generic x86_64 with glibc2.29
System Type=x86_64
Code Version=1.3 rev.28 (Up-To-Date)
Colorama : installed!
lxml : installed!
wget : installed!
Cryptography : installed!
cloudscraper : installed!
m3u8 : installed!
youtube_dl : installed!
BeautifulSoup : installed!
pager : installed!
Unidecode : installed!
psutil : installed!
Login as **** successfully.

Attempting to download English (US) subtitle...
Starting mkv merge
mkvmerge v47.0.0 ('Black Flag') 64-bit
Error: The type of file '/home/root/Crunchyroll-XML-Decoder-py3/export/A Certain Scientific Railgun Episode - 1 - Railgun.ts' could not be recognized.
Merge process complete
Starting Final Cleanup

Autocatch issue

Weird issue I am encountering. Pardon if it is user error.

When I attempt to use the auto catch link option it continuously starts to download:
The Rising of the Shield Hero Episode - 4 - Lullaby at Dawn.

This happens regardless if I try to use different links.

Current link attempted:
https://www.crunchyroll.com/konosuba-gods-blessing-on-this-wonderful-world

Is there a setting somewhere that tracks last incomplete file of some sort?

Error with latest version

Just after the check of the installed requirements it shows:

Traceback (most recent call last):
  File "G:\Crunchyroll-XML-Decoder-master\crunchy-xml-decoder-py3.py", line 119, in <module>
    userstatus = getuserstatus()
  File "crunchy-xml-decoder\login.py", line 69, in getuserstatus
    sess_id_usa = create_sess_id_usa(payload_usa)
  File "crunchy-xml-decoder\login.py", line 167, in create_sess_id_usa
    if usa_session_post.json()['error'] != "true":
  File "C:\Users\fixx1\AppData\Local\Programs\Python\Python38\lib\site-packages\requests\models.py", line 898, in json
    return complexjson.loads(self.text, **kwargs)
  File "C:\Users\fixx1\AppData\Local\Programs\Python\Python38\lib\json\__init__.py", line 357, in loads
    return _default_decoder.decode(s)
  File "C:\Users\fixx1\AppData\Local\Programs\Python\Python38\lib\json\decoder.py", line 337, in decode
    obj, end = self.raw_decode(s, idx=_w(s, 0).end())
  File "C:\Users\fixx1\AppData\Local\Programs\Python\Python38\lib\json\decoder.py", line 355, in raw_decode
    raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

Error list index out of range

File "C:\Users\Owner\Desktop\Crunchyroll-XML-Decoder-py3-master\crunchy-xml-de
coder-py3.py", line 645, in
menu_test.start_()
File "crunchy-xml-decoder\pretyconsole.py", line 116, in start_
self.run_menu('Main')
File "crunchy-xml-decoder\pretyconsole.py", line 143, in run_menu
output_ = function_[0](function_[1], **function_[2])
File "C:\Users\Owner\Desktop\Crunchyroll-XML-Decoder-py3-master\crunchy-xml-de
coder-py3.py", line 143, in queueu
ultimate(line.strip(), '', '')
File "crunchy-xml-decoder\ultimate.py", line 95, in ultimate
htmlconfig = json.loads(re.findall(r'vilos.config.media = ({.
})',html_pag
e_)[0])
IndexError: list index out of range
Press any key to continue . . .

Cloudflare captcha error

Hello,

When i try to download any CR episode i'm getting this error :

cloudscraper.exceptions.CloudflareChallengeError: Detected a Cloudflare version 2 Captcha challenge, This feature is not available in the opensource (free) version.

Could you fix that problem ?
Thanks in advance.

Stopped working after latest update

After latest update the progrma will not start. It print this:

python version=3.8.0 64 bit
OS Version=Windows 10 10.0.18362 SP0
System Type=AMD64
Code Version=1.3 rev.17 (Up-To-Date)
Colorama : installed!
lxml : installed!
wget : installed!
Cryptography : installed!
Cfscrape : installed!
m3u8 : installed!
youtube_dl : installed!
BeautifulSoup : installed!
pager : installed!
Unidecode : installed!
psutil : installed!

and it does nothing else.

No login

there is a problem with the log in
this one is always a guest

python version=3.8.5 64 bit
OS Version=Windows 10 10.0.16299 SP0
System Type=AMD64
Code Version=1.3 rev.24 (Up-To-Date)
Colorama : installed!
lxml : installed!
wget : installed!
Cryptography : installed!
cloudscraper : installed!
m3u8 : installed!
youtube_dl : installed!
BeautifulSoup : installed!
pager : installed!
Unidecode : installed!
psutil : installed!
User Name = Guest
Membership Type = Guest

i wrote my login
Login as ****** successfully.>>

but i'm still a guest

Error when launching bat

Hi.
I have this error when I launch the bat:

python version=3.7.7 64 bit
OS Version=Windows 10 10.0.19041 SP0
System Type=AMD64
Code Version=1.3 rev.29 (Up-To-Date)
Colorama : installed!
lxml : installed!
wget : installed!
Cryptography : installed!
cloudscraper : installed!
m3u8 : installed!
youtube_dl : installed!
BeautifulSoup : installed!
pager : installed!
Unidecode : installed!
psutil : installed!
Traceback (most recent call last):
File "C:\Program Files (x86)\Python37\lib\site-packages\urllib3\connectionpool.py", line 677, in urlopen
chunked=chunked,
File "C:\Program Files (x86)\Python37\lib\site-packages\urllib3\connectionpool.py", line 381, in _make_request
self._validate_conn(conn)
File "C:\Program Files (x86)\Python37\lib\site-packages\urllib3\connectionpool.py", line 976, in validate_conn
conn.connect()
File "C:\Program Files (x86)\Python37\lib\site-packages\urllib3\connection.py", line 370, in connect
ssl_context=context,
File "C:\Program Files (x86)\Python37\lib\site-packages\urllib3\util\ssl
.py", line 377, in ssl_wrap_socket
return context.wrap_socket(sock, server_hostname=server_hostname)
File "C:\Program Files (x86)\Python37\lib\ssl.py", line 423, in wrap_socket
session=session
File "C:\Program Files (x86)\Python37\lib\ssl.py", line 870, in _create
self.do_handshake()
File "C:\Program Files (x86)\Python37\lib\ssl.py", line 1139, in do_handshake
self._sslobj.do_handshake()
OSError: [Errno 0] Error

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Program Files (x86)\Python37\lib\site-packages\requests\adapters.py", line 449, in send
timeout=timeout
File "C:\Program Files (x86)\Python37\lib\site-packages\urllib3\connectionpool.py", line 725, in urlopen
method, url, error=e, _pool=self, _stacktrace=sys.exc_info()[2]
File "C:\Program Files (x86)\Python37\lib\site-packages\urllib3\util\retry.py", line 403, in increment
raise six.reraise(type(error), error, _stacktrace)
File "C:\Program Files (x86)\Python37\lib\site-packages\urllib3\packages\six.py", line 734, in reraise
raise value.with_traceback(tb)
File "C:\Program Files (x86)\Python37\lib\site-packages\urllib3\connectionpool.py", line 677, in urlopen
chunked=chunked,
File "C:\Program Files (x86)\Python37\lib\site-packages\urllib3\connectionpool.py", line 381, in _make_request
self._validate_conn(conn)
File "C:\Program Files (x86)\Python37\lib\site-packages\urllib3\connectionpool.py", line 976, in validate_conn
conn.connect()
File "C:\Program Files (x86)\Python37\lib\site-packages\urllib3\connection.py", line 370, in connect
ssl_context=context,
File "C:\Program Files (x86)\Python37\lib\site-packages\urllib3\util\ssl
.py", line 377, in ssl_wrap_socket
return context.wrap_socket(sock, server_hostname=server_hostname)
File "C:\Program Files (x86)\Python37\lib\ssl.py", line 423, in wrap_socket
session=session
File "C:\Program Files (x86)\Python37\lib\ssl.py", line 870, in _create
self.do_handshake()
File "C:\Program Files (x86)\Python37\lib\ssl.py", line 1139, in do_handshake
self._sslobj.do_handshake()
urllib3.exceptions.ProtocolError: ('Connection aborted.', OSError(0, 'Error'))

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "D:\Crunchyroll-XML-Decoder-py3-master\crunchy-xml-decoder-py3.py", line 363, in
check_cookies()
File "D:\Crunchyroll-XML-Decoder-py3-master\crunchy-xml-decoder-py3.py", line 94, in check_cookies
userstatus = getuserstatus()
File "crunchy-xml-decoder\login.py", line 124, in getuserstatus
re_login_status = login(re_username, re_password)
File "crunchy-xml-decoder\login.py", line 278, in login
generate_sess_id = create_sess_id()
File "crunchy-xml-decoder\login.py", line 236, in create_sess_id
proxy_ = get_proxy(['HTTPS'], [config()['proxy']])
File "crunchy-xml-decoder\proxy_cr.py", line 57, in get_proxy
'https://www.xroxy.com/free-proxy-lists/?port=&type=Distorting&ssl=ssl&country='+countries_[0]+'&latency=&reliability=')
File "C:\Program Files (x86)\Python37\lib\site-packages\requests\api.py", line 76, in get
return request('get', url, params=params, **kwargs)
File "C:\Program Files (x86)\Python37\lib\site-packages\requests\api.py", line 61, in request
return session.request(method=method, url=url, **kwargs)
File "C:\Program Files (x86)\Python37\lib\site-packages\requests\sessions.py", line 530, in request
resp = self.send(prep, **send_kwargs)
File "C:\Program Files (x86)\Python37\lib\site-packages\requests\sessions.py", line 643, in send
r = adapter.send(request, **kwargs)
File "C:\Program Files (x86)\Python37\lib\site-packages\requests\adapters.py", line 498, in send
raise ConnectionError(err, request=request)
requests.exceptions.ConnectionError: ('Connection aborted.', OSError(0, 'Error'))
Appuyez sur une touche pour continuer...

Traceback from 0 when there's no config

Traceback (most recent call last):
File "F:\Repos\Crunchyroll-XML-Decoder-py3\crunchy-xml-decoder-py3.py", line 32, in
from login import login, getuserstatus
File "crunchy-xml-decoder\login.py", line 6, in
from configparser import ConfigParser
ImportError: No module named configparser

PS: MY Python version is 3.7.3

anime movie with the train error

Now Downloading - The one anime with the train
Traceback (most recent call last):
File "crunchy-xml-decoder-py3.py", line 389, in
menu_test.start_()
File "crunchy-xml-decoder/pretyconsole.py", line 116, in start_
self.run_menu('Main')
File "crunchy-xml-decoder/pretyconsole.py", line 143, in run_menu
output_ = function_[0](*function_[1], **function_[2])
File "crunchy-xml-decoder/ultimate.py", line 232, in ultimate
download_subprocess_result = download_.video_hls(hls_url, video_input, config_['connection_n_'])
File "crunchy-xml-decoder/hls_.py", line 158, in video_hls
self.video = find_best_video(uri)
File "crunchy-xml-decoder/hls_.py", line 241, in find_best_video
return find_best_video(best_stream.absolute_uri)
File "crunchy-xml-decoder/hls_.py", line 231, in find_best_video
playlist = m3u8.load(uri)
File "/usr/local/lib/python3.6/dist-packages/m3u8/init.py", line 58, in load
return _load_from_uri(uri, timeout, headers, custom_tags_parser, verify_ssl)
File "/usr/local/lib/python3.6/dist-packages/m3u8/init.py", line 70, in _load_from_uri
resource = urlopen(request, timeout=timeout, context=context)
File "/usr/lib/python3.6/urllib/request.py", line 223, in urlopen
return opener.open(url, data, timeout)
File "/usr/lib/python3.6/urllib/request.py", line 532, in open
response = meth(req, response)
File "/usr/lib/python3.6/urllib/request.py", line 642, in http_response
'http', request, response, code, msg, hdrs)
File "/usr/lib/python3.6/urllib/request.py", line 570, in error
return self._call_chain(*args)
File "/usr/lib/python3.6/urllib/request.py", line 504, in _call_chain
result = func(*args)
File "/usr/lib/python3.6/urllib/request.py", line 650, in http_error_default
raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 502: Bad Gateway

Normal episodes download fine.

Not working anymore for me since yesterday.

Now Downloading - Ace of Diamond Episode 30 - Bloom of youth
Traceback (most recent call last):
File "D:\Crunchyroll-XML-Decoder-py3-master\crunchy-xml-decoder-py3.py", line 407, in
make_choise()
File "D:\Crunchyroll-XML-Decoder-py3-master\crunchy-xml-decoder-py3.py", line 355, in make_choise
ultimate()
File "crunchy-xml-decoder\ultimate.py", line 190, in ultimate
download_.video_hls(hls_url, video_input, config_['connection_n_'])
File "crunchy-xml-decoder\hls_.py", line 143, in video_hls
fetch_encryption_key(self.video)
File "crunchy-xml-decoder\hls_.py", line 203, in fetch_encryption_key
assert video.keys[0].method == 'AES-128'
AssertionError

I never had a problem with your script until now :(

Code not working after update

the latest update change file settings.ini structure
so you need to delete the setting.ini first then run the code

Issue after inserting the episode url

As said the program gives me back this issue:

Traceback (most recent call last):
  File "I:\Crunchyroll-XML-Decoder-master\crunchy-xml-decoder-py3.py", line 645, in <module>
    menu_test.start_()
  File "crunchy-xml-decoder\pretyconsole.py", line 116, in start_
    self.run_menu('Main')
  File "crunchy-xml-decoder\pretyconsole.py", line 143, in run_menu
    output_ = function_[0](*function_[1], **function_[2])
  File "crunchy-xml-decoder\ultimate.py", line 95, in ultimate
    htmlconfig = json.loads(re.findall(r'vilos\.config\.media = ({.*})',html_page_)[0])
IndexError: list index out of range

Found this issue #22
but there isn't any solution

Bad Gateway error

Traceback (most recent call last):
File "C:\Users\Owner\Desktop\Crunchyroll-XML-Decoder-py3-master\crunchy-xml-de
coder-py3.py", line 389, in
menu_test.start_()
File "crunchy-xml-decoder\pretyconsole.py", line 116, in start_
self.run_menu('Main')
File "crunchy-xml-decoder\pretyconsole.py", line 143, in run_menu
output_ = function_[0](*function_[1], **function_[2])
File "C:\Users\Owner\Desktop\Crunchyroll-XML-Decoder-py3-master\crunchy-xml-de
coder-py3.py", line 112, in queueu
ultimate(line.strip(), '', '')
File "crunchy-xml-decoder\ultimate.py", line 232, in ultimate
download_subprocess_result = download_.video_hls(hls_url, video_input, confi
g_['connection_n_'])
File "crunchy-xml-decoder\hls_.py", line 158, in video_hls
self.video = find_best_video(uri)
File "crunchy-xml-decoder\hls_.py", line 231, in find_best_video
playlist = m3u8.load(uri)
File "C:\Users\Owner\AppData\Local\Programs\Python\Python37-32\lib\site-packag
es\m3u8_init_.py", line 49, in load
return load_from_uri(uri, timeout, headers, custom_tags_parser)
File "C:\Users\Owner\AppData\Local\Programs\Python\Python37-32\lib\site-packag
es\m3u8_init
.py", line 58, in _load_from_uri
resource = urlopen(request, timeout=timeout)
File "C:\Users\Owner\AppData\Local\Programs\Python\Python37-32\lib\urllib\requ
est.py", line 222, in urlopen
return opener.open(url, data, timeout)
File "C:\Users\Owner\AppData\Local\Programs\Python\Python37-32\lib\urllib\requ
est.py", line 531, in open
response = meth(req, response)
File "C:\Users\Owner\AppData\Local\Programs\Python\Python37-32\lib\urllib\requ
est.py", line 641, in http_response
'http', request, response, code, msg, hdrs)
File "C:\Users\Owner\AppData\Local\Programs\Python\Python37-32\lib\urllib\requ
est.py", line 569, in error
return self._call_chain(*args)
File "C:\Users\Owner\AppData\Local\Programs\Python\Python37-32\lib\urllib\requ
est.py", line 503, in _call_chain
result = func(*args)
File "C:\Users\Owner\AppData\Local\Programs\Python\Python37-32\lib\urllib\requ
est.py", line 649, in http_error_default
raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 502: Bad Gateway
Press any key to continue . . .

Error : UnboundLocalError on start

Hello, I launched the.py file, it installed the missing modules but it returns this to me:

python3.6 crunchy-xml-decoder-py3.py

python version=4.9.2 64 bit
OS Version=Linux 3.16.0 4 amd64 x86_64 with debian 8.11
System Type=x86_64
Colorama : installed!
lxml : installed!
wget : installed!
Cryptography : installed!
Cfscrape : installed!
m3u8 : installed!
BeautifulSoup : installed!
pager : installed!
Unidecode : installed!
proxybroker : installed!
Can't find the crunchy-xml-decoder-py3 Folder
Traceback (most recent call last):
  File "crunchy-xml-decoder-py3.py", line 26, in <module>
    testing_external_moudules_()
  File "crunchy-xml-decoder/external_test.py", line 123, in testing_external_moudules_
    if not os.path.exists(bin_dir__):
UnboundLocalError: local variable 'bin_dir__' referenced before assignment

Any solution to solve this?

Error with autocatch

At the moment I press 5 for autocatc, before ask me for the serie link, the program gives me this error:

Traceback (most recent call last):
  File "H:\Crunchyroll-XML-Decoder-master\crunchy-xml-decoder-py3.py", line 645, in <module>
    menu_test.start_()
  File "crunchy-xml-decoder\pretyconsole.py", line 116, in start_
    self.run_menu('Main')
  File "crunchy-xml-decoder\pretyconsole.py", line 143, in run_menu
    output_ = function_[0](*function_[1], **function_[2])
  File "H:\Crunchyroll-XML-Decoder-master\crunchy-xml-decoder-py3.py", line 536, in autocatch_t
    autocatch()
  File "crunchy-xml-decoder\altfuncs.py", line 371, in autocatch
    url = ''.join(re.findall(r'(https?://www\.crunchyroll\.com/)(?:[\w-]{2,5}/)?(.+?)(?=/|$)',url)[0])+'?skip_wall=1'
  File "C:\Python38\lib\re.py", line 239, in findall
    return _compile(pattern, flags).findall(string)
TypeError: expected string or bytes-like object

Suggestion: MKVmerge Update

MKVmerge should be updated and 64-Bit systems should use the 64-Bit Version as the speed improvements are significant

I can't run the script.

After insalling Node.js I got this:

Traceback (most recent call last):
File "D:\Crunchyroll-XML-Decoder-py3-master\crunchy-xml-decoder-py3.py", line 26, in
from updater import get_lastest_version, run_update
File "crunchy-xml-decoder\updater.py", line 9, in
import requests
ModuleNotFoundError: No module named 'requests'
Appuyez sur une touche pour continuer...

Error SSL certificate

Please enter Crunchyroll video URL:
https://www.crunchyroll.com/it/food-wars-shokugeki-no-soma/episode-9-the-god-tongues-despair-796433
Traceback (most recent call last):
  File "C:\Users\fixx1\AppData\Local\Programs\Python\Python38-32\lib\urllib\request.py", line 1350, in do_open
    h.request(req.get_method(), req.selector, req.data, headers,
  File "C:\Users\fixx1\AppData\Local\Programs\Python\Python38-32\lib\http\client.py", line 1255, in request
    self._send_request(method, url, body, headers, encode_chunked)
  File "C:\Users\fixx1\AppData\Local\Programs\Python\Python38-32\lib\http\client.py", line 1301, in _send_request
    self.endheaders(body, encode_chunked=encode_chunked)
  File "C:\Users\fixx1\AppData\Local\Programs\Python\Python38-32\lib\http\client.py", line 1250, in endheaders
    self._send_output(message_body, encode_chunked=encode_chunked)
  File "C:\Users\fixx1\AppData\Local\Programs\Python\Python38-32\lib\http\client.py", line 1010, in _send_output
    self.send(msg)
  File "C:\Users\fixx1\AppData\Local\Programs\Python\Python38-32\lib\http\client.py", line 950, in send
    self.connect()
  File "C:\Users\fixx1\AppData\Local\Programs\Python\Python38-32\lib\http\client.py", line 1424, in connect
    self.sock = self._context.wrap_socket(self.sock,
  File "C:\Users\fixx1\AppData\Local\Programs\Python\Python38-32\lib\ssl.py", line 500, in wrap_socket
    return self.sslsocket_class._create(
  File "C:\Users\fixx1\AppData\Local\Programs\Python\Python38-32\lib\ssl.py", line 1040, in _create
    self.do_handshake()
  File "C:\Users\fixx1\AppData\Local\Programs\Python\Python38-32\lib\ssl.py", line 1309, in do_handshake
    self._sslobj.do_handshake()
ssl.SSLCertVerificationError: [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get issuer certificate (_ssl.c:1123)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "I:\Crunchyroll-XML-Decoder-master\crunchy-xml-decoder-py3.py", line 645, in <module>
    menu_test.start_()
  File "crunchy-xml-decoder\pretyconsole.py", line 116, in start_
    self.run_menu('Main')
  File "crunchy-xml-decoder\pretyconsole.py", line 143, in run_menu
    output_ = function_[0](*function_[1], **function_[2])
  File "crunchy-xml-decoder\ultimate.py", line 162, in ultimate
    hls_url_m3u8 = m3u8.load(hls_url)
  File "C:\Users\fixx1\AppData\Local\Programs\Python\Python38-32\lib\site-packages\m3u8\__init__.py", line 46, in load
    content, base_uri = http_client.download(uri, timeout, headers, verify_ssl)
  File "C:\Users\fixx1\AppData\Local\Programs\Python\Python38-32\lib\site-packages\m3u8\httpclient.py", line 27, in download
    resource = opener.open(uri, timeout=timeout)
  File "C:\Users\fixx1\AppData\Local\Programs\Python\Python38-32\lib\urllib\request.py", line 525, in open
    response = self._open(req, data)
  File "C:\Users\fixx1\AppData\Local\Programs\Python\Python38-32\lib\urllib\request.py", line 542, in _open
    result = self._call_chain(self.handle_open, protocol, protocol +
  File "C:\Users\fixx1\AppData\Local\Programs\Python\Python38-32\lib\urllib\request.py", line 502, in _call_chain
    result = func(*args)
  File "C:\Users\fixx1\AppData\Local\Programs\Python\Python38-32\lib\urllib\request.py", line 1393, in https_open
    return self.do_open(http.client.HTTPSConnection, req,
  File "C:\Users\fixx1\AppData\Local\Programs\Python\Python38-32\lib\urllib\request.py", line 1353, in do_open
    raise URLError(err)
urllib.error.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed: unable to get issuer certificate (_ssl.c:1123)>

It does the same with every serie

Exception in thread compute_total_size_thread_

This error come when i try to download.


Booting up...

Please enter Crunchyroll video URL:
https://www.crunchyroll.com/de/ascendance-of-a-bookworm/episode-21-new-retainers-794557
Now Downloading - Ascendance of a Bookworm Episode 21
Exception in thread compute_total_size_thread_: 124MB | @ 14.07Mb/s
Traceback (most recent call last): Part#12 |%6.73
File "C:\Python37-32\lib\threading.py", line 926, in _bootstrap_inner
self.run()
File "C:\Python37-32\lib\threading.py", line 870, in run
self._target(*self.args, **self.kwargs)
File "crunchy-xml-decoder\hls
.py", line 46, in compute_total_size
self.compute_total_size_part(video[n].absolute_uri, str(video[n].media_sequence))
File "crunchy-xml-decoder\hls
.py", line 34, in compute_total_size_part
self.part_size[n] = response.headers['Content-Length']
File "C:\Python37-32\lib\site-packages\requests\structures.py", line 52, in getitem
return self._store[key.lower()][1]
KeyError: 'content-length'

Show/file overwriting issue.

It will overwrite files if there is an uncensored version like ://www.crunchyroll.com/senran-kagura-shinovi-master, some shows have multiple versions for cut/uncut or if it has more than one dub like Spanish or Russian. https://www.crunchyroll.com/konosuba-gods-blessing-on-this-wonderful-world. But one problem is between different publishers they use tags for Dub or sub shows and some use Dub, English Dub or other variations and the program will overwrite them if they do not specify between the different languages or tags like on Shinovi Master. Crunchy has recently started dubbing shows in multiple languages so this might be an issue when batch downloading.

Premium login broken

Traceback (most recent call last):
File "C:\Users\Owner\Desktop\Crunchyroll-XML-Decoder-py3-master\crunchy-xml-de
coder-py3.py", line 645, in
menu_test.start_()
File "crunchy-xml-decoder\pretyconsole.py", line 116, in start_
self.run_menu('Main')
File "crunchy-xml-decoder\pretyconsole.py", line 143, in run_menu
output_ = function_[0](*function_[1], **function_[2])
File "C:\Users\Owner\Desktop\Crunchyroll-XML-Decoder-py3-master\crunchy-xml-de
coder-py3.py", line 522, in login_t
userstatus = login(username, password)
File "crunchy-xml-decoder\login.py", line 117, in login
sess_id_usa = create_sess_id_usa(payload_usa)
File "crunchy-xml-decoder\login.py", line 176, in create_sess_id_usa
if usa_session_post.json()['error'] != "true":
File "C:\Users\Owner\AppData\Local\Programs\Python\Python37-32\lib\site-packag
es\requests\models.py", line 897, in json
return complexjson.loads(self.text, **kwargs)
File "C:\Users\Owner\AppData\Local\Programs\Python\Python37-32\lib\json__init
__.py", line 348, in loads
return _default_decoder.decode(s)
File "C:\Users\Owner\AppData\Local\Programs\Python\Python37-32\lib\json\decode
r.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "C:\Users\Owner\AppData\Local\Programs\Python\Python37-32\lib\json\decode
r.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
Press any key to continue . . .

Wierd Download error

I'm trying to download a specific episode, and it doesn't want to download. I can go download from another series no problem. The episode is watchable thru the site. Here's what the program says:

Exception in thread download_thread_:
Traceback (most recent call last):
File "C:\Program Files\Python37\lib\threading.py", line 917, in _bootstrap_inner
self.run()
File "C:\Program Files\Python37\lib\threading.py", line 865, in run
self._target(*self.args, **self.kwargs)
File "crunchy-xml-decoder\hls
.py", line 95, in download_thread
self.download_part(seg.absolute_uri, output, key, seg.media_sequence, self.tasks1)
File "crunchy-xml-decoder\hls
.py", line 62, in download_part
with open(filename, 'ab') as f_handle:
OSError: [Errno 22] Invalid argument: 'C:\Users\Public\Crunchyroll-XML-Decoder_link\export\Phantom Thief Reinya Episode - 3 - Stolen Love in Space.".ts0'

Traceback (most recent call last):
File "C:\Users\Public\Crunchyroll-XML-Decoder_link\crunchy-xml-decoder-py3.py", line 407, in
make_choise()
File "C:\Users\Public\Crunchyroll-XML-Decoder_link\crunchy-xml-decoder-py3.py", line 355, in make_choise
ultimate()
File "crunchy-xml-decoder\ultimate.py", line 190, in ultimate
download_.video_hls(hls_url, video_input, config_['connection_n_'])
File "crunchy-xml-decoder\hls_.py", line 144, in video_hls
self.fetch_streams()
File "crunchy-xml-decoder\hls_.py", line 126, in fetch_streams
os.rename(self.output+'0',self.output)
OSError: [WinError 123] The filename, directory name, or volume label syntax is incorrect: 'C:\Users\Public\Crunchyroll-XML-Decoder_link\export\Phantom Thief Reinya Episode - 3 - Stolen Love in Space.".ts0' -> 'C:\Users\Public\Crunchyroll-XML-Decoder_link\export\Phantom Thief Reinya Episode - 3 - Stolen Love in Space.".ts'

Not sure if it was program or site related.

BUG ANIME

Hello.
for some reason this anime. can not be downloaded.
sell this bug.
all other anime without problems.
name: https://www.crunchyroll.com/es/so-im-a-spider-so-what

ERROR:
Booting up...

Now Downloading - So I'm a Spider, So What. Episode 1 - ?Reencarnacion. ?Otro mundo.
Exception in thread download_thread_:
Traceback (most recent call last):
File "C:\Users\sao\AppData\Local\Programs\Python\Python37\lib\threading.py", line 926, in _bootstrap_inner
self.run()
File "C:\Users\sao\AppData\Local\Programs\Python\Python37\lib\threading.py", line 870, in run
self._target(*self.args, **self.kwargs)
File "crunchy-xml-decoder\hls
.py", line 95, in download_thread
self.download_part(seg.absolute_uri, output, key, seg.media_sequence, self.tasks1)
File "crunchy-xml-decoder\hls
.py", line 62, in download_part
with open(filename, 'ab') as f_handle:
OSError: [Errno 22] Invalid argument: "C:\Users\sao\3D Objects\Crunchyroll-XML-Decoder-py3-master\export\So I'm a Spider, So What. Episode - 1 - ?Reencarnacion. ?Otro mundo..ts0"

Traceback (most recent call last):
File "C:\Users\sao\3D Objects\Crunchyroll-XML-Decoder-py3-master\crunchy-xml-decoder-py3.py", line 378, in
queueu(os.path.join('.', arg.queue))
File "C:\Users\sao\3D Objects\Crunchyroll-XML-Decoder-py3-master\crunchy-xml-decoder-py3.py", line 112, in queueu
ultimate(line.strip(), '', '')
File "crunchy-xml-decoder\ultimate.py", line 232, in ultimate
download_subprocess_result = download_.video_hls(hls_url, video_input, config_['connection_n_'])
File "crunchy-xml-decoder\hls_.py", line 162, in video_hls
self.fetch_streams()
File "crunchy-xml-decoder\hls_.py", line 126, in fetch_streams
os.rename(self.output+'0',self.output)
OSError: [WinError 123] El nombre de archivo, el nombre de directorio o la sintaxis de la etiqueta del volumen no son correctos: "C:\Users\sao\3D Objects\Crunchyroll-XML-Decoder-py3-master\export\So I'm a Spider, So What. Episode - 1 - ?Reencarnacion. ?Otro mundo..ts0" -> "C:\Users\sao\3D Objects\Crunchyroll-XML-Decoder-py3-master\export\So I'm a Spider, So What. Episode - 1 - ?Reencarnacion. ?Otro mundo..ts"

Installation error

Command python setup.py egg_info failed with error code 1 in C:\Users\Owner\AppD
ata\Local\Temp\pip_build_Owner\lxml
Storing debug log for failure in C:\Users\Owner\pip\pip.log
Traceback (most recent call last):
File "C:\Users\Owner\Desktop\Crunchyroll-XML-Decoder-py3-master\crunchy-xml-de
coder-py3.py", line 33, in
testing_external_moudules_(code_version)
File "crunchy-xml-decoder\external_test.py", line 150, in testing_external_mou
dules_
import wget
ImportError: No module named 'wget'
Press any key to continue . . .

Proxies are not working

hello i am trying to download from USA from EU and i can't what's wrecked in the code? :(

I'm back

I was awY due to real life issues
I will come again and rewrote the code again to remove most of error we having and clean code from extra lines

So if if you have any note or idea to integrate to code commit here

Beta Crunchyroll

Hi
With the beta release of the Crunchyroll site
the system does not work anymore
for information

Incorrect time length after mkvmerge

Hi,

Only seeing this on random episodes but some episodes are getting merged with a few extra minutes. The downloaded .ts file has the correct length prior to mkvmerge. I notice this on mkvmerge v10 and 47(x64).

Anime: http://www.crunchyroll.com/fatekaleid-liner-prisma-illya/episode-6-blue-glass-moon-682409

Fate - kaleid liner PRISMA ILLYA Episode - 6 - Blue Glass Moon.ts 00:23:35
Fate - kaleid liner PRISMA ILLYA Episode - 6 - Blue Glass Moon[highest].mkv 00:25:35

Attempting to download English (US) subtitle...
Starting mkv merge
mkvmerge v10.0.0 ('To Drown In You') 32bit
'/home/root/Crunchyroll-XML-Decoder-py3/export/Fate - kaleid liner PRISMA ILLYA Episode - 6 - Blue Glass Moon.ts': Using the demultiplexer for the format 'MPEG transport stream'.
'/home/root/Crunchyroll-XML-Decoder-py3/export/Fate - kaleid liner PRISMA ILLYA Episode - 6 - Blue Glass Moon[eng][English (US)].ass': Using the demultiplexer for the format 'SSA/ASS subtitles'.
'/home/root/Crunchyroll-XML-Decoder-py3/export/Fate - kaleid liner PRISMA ILLYA Episode - 6 - Blue Glass Moon.ts' track 0: Using the output module for the format 'AVC/h.264 (unframed)'.
'/home/root/Crunchyroll-XML-Decoder-py3/export/Fate - kaleid liner PRISMA ILLYA Episode - 6 - Blue Glass Moon.ts' track 1: Using the output module for the format 'AAC'.
'/home/root/Crunchyroll-XML-Decoder-py3/export/Fate - kaleid liner PRISMA ILLYA Episode - 6 - Blue Glass Moon[eng][English (US)].ass' track 0: Using the output module for the format 'text subtitles'.
The file '/home/root/Crunchyroll-XML-Decoder-py3/export/Fate - kaleid liner PRISMA ILLYA Episode - 6 - Blue Glass Moon[highest].mkv' has been opened for writing.
'/home/root/Crunchyroll-XML-Decoder-py3/export/Fate - kaleid liner PRISMA ILLYA Episode - 6 - Blue Glass Moon.ts' track 0: Extracted the aspect ratio information from the MPEG-4 layer 10 (AVC) video data and set the display dimensions to 1920/1080.
Progress: 100%
The cue entries (the index) are being written...
Multiplexing took 1 minute 36 seconds.
Merge process complete
Starting Final Cleanup

Special characters preventing download

Booting up...

Now Downloading - Re-ZERO -Starting Life in Another World- Episode 9 - "The Gree
d of a Pig - Disgrace in the Extreme
Exception in thread download_thread_:
Traceback (most recent call last):
File "C:\Users\Owner\AppData\Local\Programs\Python\Python37-32\lib\threading.p
y", line 917, in _bootstrap_inner
self.run()
File "C:\Users\Owner\AppData\Local\Programs\Python\Python37-32\lib\threading.p
y", line 865, in run
self._target(*self.args, **self.kwargs)
File "crunchy-xml-decoder\hls
.py", line 95, in download_thread
self.download_part(seg.absolute_uri, output, key, seg.media_sequence, self.t
asks1)
File "crunchy-xml-decoder\hls
.py", line 62, in download_part
with open(filename, 'ab') as f_handle:
OSError: [Errno 22] Invalid argument: 'C:\Users\Owner\Downloads\Crunchyroll-
XML-Decoder-py3-master\export\Re-ZERO -Starting Life in Another World- Episode

  • 9 - "The Greed of a Pig - Disgrace in the Extreme.ts0'

Traceback (most recent call last):
File "C:\Users\Owner\Downloads\Crunchyroll-XML-Decoder-py3-master\crunchy-xml-
decoder-py3.py", line 645, in
menu_test.start_()
File "crunchy-xml-decoder\pretyconsole.py", line 116, in start_
self.run_menu('Main')
File "crunchy-xml-decoder\pretyconsole.py", line 143, in run_menu
output_ = function_[0](*function_[1], **function_[2])
File "C:\Users\Owner\Downloads\Crunchyroll-XML-Decoder-py3-master\crunchy-xml-
decoder-py3.py", line 143, in queueu
ultimate(line.strip(), '', '')
File "crunchy-xml-decoder\ultimate.py", line 213, in ultimate
download_subprocess_result = download_.video_hls(hls_url, video_input, confi
g_['connection_n_'])
File "crunchy-xml-decoder\hls_.py", line 162, in video_hls
self.fetch_streams()
File "crunchy-xml-decoder\hls_.py", line 126, in fetch_streams
os.rename(self.output+'0',self.output)
OSError: [WinError 123] The filename, directory name, or volume label syntax is
incorrect: 'C:\Users\Owner\Downloads\Crunchyroll-XML-Decoder-py3-master\exp
ort\Re-ZERO -Starting Life in Another World- Episode - 9 - "The Greed of a Pig

  • Disgrace in the Extreme.ts0' -> 'C:\Users\Owner\Downloads\Crunchyroll-XML-
    Decoder-py3-master\export\Re-ZERO -Starting Life in Another World- Episode - 9
  • "The Greed of a Pig - Disgrace in the Extreme.ts'
    Press any key to continue . . .

The download and login no longer work

The download and login no longer work, the following error occurs.


Password(don't worry the password are typing but hidden:
Traceback (most recent call last):
  File "D:\CRD-PY3\crunchy-xml-decoder-py3.py", line 363, in <module>
    check_cookies()
  File "D:\CRD-PY3\crunchy-xml-decoder-py3.py", line 88, in check_cookies
    login(username, password)
  File "crunchy-xml-decoder\login.py", line 278, in login
    generate_sess_id = create_sess_id()
  File "crunchy-xml-decoder\login.py", line 242, in create_sess_id
    sess_id_data = session.post('http://api.crunchyroll.com/start_session.0.json', proxies=proxies, params=payload).json()['data']
KeyError: 'data'

Code Version=1.3 rev.29 (Up-To-Date)

captcha exception

Hi,

I keep running into this captcha exception at random places. sometimes while downloading the anime and sometimes while the subs are downloading

anime: http://www.crunchyroll.com/attack-on-titan/episode-60-the-other-side-of-the-sea-799901

cloudscraper.exceptions.CloudflareCaptchaProvider: Cloudflare Captcha detected, unfortunately you haven't loaded an anti Captcha provider correctly via the 'captcha' parameter.

Some system info:
root@root:~$ python3 crunchy-xml-decoder-py3.py
python version=3.8.5 64 bit
OS Version=Linux 5.4.0 70 generic x86_64 with glibc2.29
System Type=x86_64
Code Version=1.3 rev.29 (Up-To-Date)
Colorama : installed!
lxml : installed!
wget : installed!
Cryptography : installed!
cloudscraper : installed!
m3u8 : installed!
youtube_dl : installed!
BeautifulSoup : installed!
pager : installed!
Unidecode : installed!
psutil : installed!
Login as user successfully.
User Name = user
Membership Type = Premium

root@root:~$ python3 -m pip show cloudscraper
Name: cloudscraper
Version: 1.2.48

error in 1.3

I tested the new version but I have an error at startup
Sans titre

Batch download error

Traceback (most recent call last):
File "C:\Users\Owner\Downloads\Crunchyroll-XML-Decoder-py3-master\crunchy-xml-
decoder-py3.py", line 645, in
menu_test.start_()
File "crunchy-xml-decoder\pretyconsole.py", line 116, in start_
self.run_menu('Main')
File "crunchy-xml-decoder\pretyconsole.py", line 143, in run_menu
output_ = function_[0](*function_[1], *function_[2])
File "crunchy-xml-decoder\ultimate.py", line 91, in ultimate
media_id = re.findall(r'https?://www.crunchyroll.com/.+/.+-(\d
)',page_url
)[0]
IndexError: list index out of range
Press any key to continue . . .

Script enchanment

I opened this issue so others can give Suggestions and ideas to improve this code
and i will use these ideas to make to-do-list for future development

To-Do-List:

1-[ ] compile error msg that explain why code failed to download, which include: region lock, need a premium account...etc
2-[ * ] update setting code so it can import old setting without raising an error
3-[ * ] add the position of the download folder in the settings
4-[ * ] Separate executable bins into x86/x64
5-[ ] adding download all dub audio option

legend:

[ ] idea accepted and will work at it in future
[x] working at the idea at the moment
[*] idea was embeded into the code

let's make this code better

Can't login anymore

Hi.
Since yesterday your script worked with some minor troubleshootings, but since tokay login fails each time.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.