Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

re-write the code to use python3 #65

Open
alzamer2 opened this issue Mar 30, 2019 · 77 comments
Open

re-write the code to use python3 #65

alzamer2 opened this issue Mar 30, 2019 · 77 comments

Comments

@alzamer2
Copy link
Collaborator

as you know 2.7 is coming to end at 2020
what does that mean?
the code will still work but if they changed their page we may new code that only supported on python3
i need some tester to check this code
it work at python 3.3 or newer
https://github.com/alzamer2/Crunchyroll-XML-Decoder-py3

@darkhelmet2016
Copy link

Tried on windows 10 and it gave a bunch of errors about dependency conflicts with pip.

@alzamer2
Copy link
Collaborator Author

can you post pic

@darkhelmet2016
Copy link

Just posting all of it because was too much for a cap.

python version=�[32m3.6.5 32 bit�[0m
OS Version=�[32mWindows 10 10.0.17134 SP0�[0m
System Type=�[32mAMD64�[0m
lxml : �[31mnot installed!�[0m, Installing lxml...
Cryptography : �[31mnot installed!�[0m, Installing Cryptography...
Cfscrape : �[31mnot installed!�[0m, Installing Cfscrape...
m3u8 : �[31mnot installed!�[0m, Installing m3u8...
BeautifulSoup : �[31mnot installed!�[0m, Installing BeautifulSoup...
backports.shutil_get_terminal_size : �[31mnot installed!�[0m, Installing backports.shutil_get_terminal_size...
Unidecode : �[31mnot installed!�[0m, Installing Unidecode...
proxybroker : �[31mnot installed!�[0m, Installing proxybroker...
Collecting Colorama
Downloading https://files.pythonhosted.org/packages/4f/a6/728666f39bfff1719fc94c481890b2106837da9318031f71a8424b662e12/colorama-0.4.1-py2.py3-none-any.whl
Collecting lxml
Downloading https://files.pythonhosted.org/packages/49/17/75a4a1ddd8dac861d7fb984ccd7d81df344dc25a34eb61aab0265bee7d2d/lxml-4.3.3-cp36-cp36m-win32.whl (3.2MB)
100% |████████████████████████████████| 3.3MB 218kB/s
Collecting cryptography==2.4.2
Downloading https://files.pythonhosted.org/packages/af/d7/9e6442de1aa61d3268e5abd7fb73b130cfc2e42439a7db42248653844593/cryptography-2.4.2-cp36-cp36m-win32.whl (1.1MB)
100% |████████████████████████████████| 1.1MB 504kB/s
Collecting cfscrape
Downloading https://files.pythonhosted.org/packages/4a/72/079479b9eafacf98e01055dc6547cca17d13a2e8012897087b6e0cb1ab92/cfscrape-1.9.7-py3-none-any.whl
Collecting m3u8
Downloading https://files.pythonhosted.org/packages/f3/09/7babf08a743d37b44d2a0cd742252f9e10663f9f5badb51a1dce759eb32b/m3u8-0.3.7.tar.gz
Collecting beautifulsoup4
Downloading https://files.pythonhosted.org/packages/1d/5d/3260694a59df0ec52f8b4883f5d23b130bc237602a1411fa670eae12351e/beautifulsoup4-4.7.1-py3-none-any.whl (94kB)
100% |████████████████████████████████| 102kB 1.6MB/s
Collecting backports.shutil_get_terminal_size
Downloading https://files.pythonhosted.org/packages/7d/cd/1750d6c35fe86d35f8562091737907f234b78fdffab42b29c72b1dd861f4/backports.shutil_get_terminal_size-1.0.0-py2.py3-none-any.whl
Collecting unidecode
Downloading https://files.pythonhosted.org/packages/31/39/53096f9217b057cb049fe872b7fc7ce799a1a89b76cf917d9639e7a558b5/Unidecode-1.0.23-py2.py3-none-any.whl (237kB)
100% |████████████████████████████████| 245kB 1.3MB/s
Collecting proxybroker
Downloading https://files.pythonhosted.org/packages/27/bd/7ffee9acbf97ab702f373678a9ac61aefbd59710b1544cf6c6a31d114203/proxybroker-0.3.2-py3-none-any.whl (1.6MB)
100% |████████████████████████████████| 1.6MB 435kB/s
Collecting cffi!=1.11.3,>=1.7 (from cryptography==2.4.2)
Downloading https://files.pythonhosted.org/packages/7d/ea/9bc80f022d34ef7602c5419a21ae479d2a6810d2310e49935e31c90187f2/cffi-1.12.2-cp36-cp36m-win32.whl (159kB)
100% |████████████████████████████████| 163kB 1.6MB/s
Collecting six>=1.4.1 (from cryptography==2.4.2)
Downloading https://files.pythonhosted.org/packages/73/fb/00a976f728d0d1fecfe898238ce23f502a721c0ac0ecfedb80e0d88c64e9/six-1.12.0-py2.py3-none-any.whl
Collecting asn1crypto>=0.21.0 (from cryptography==2.4.2)
Using cached https://files.pythonhosted.org/packages/ea/cd/35485615f45f30a510576f1a56d1e0a7ad7bd8ab5ed7cdc600ef7cd06222/asn1crypto-0.24.0-py2.py3-none-any.whl
Collecting idna>=2.1 (from cryptography==2.4.2)
Downloading https://files.pythonhosted.org/packages/14/2c/cd551d81dbe15200be1cf41cd03869a46fe7226e7450af7a6545bfc474c9/idna-2.8-py2.py3-none-any.whl (58kB)
100% |████████████████████████████████| 61kB 2.0MB/s
Collecting requests>=2.0.0 (from cfscrape)
Downloading https://files.pythonhosted.org/packages/7d/e3/20f3d364d6c8e5d2353c72a67778eb189176f08e873c9900e10c0287b84b/requests-2.21.0-py2.py3-none-any.whl (57kB)
100% |████████████████████████████████| 61kB 2.0MB/s
Collecting iso8601 (from m3u8)
Using cached https://files.pythonhosted.org/packages/ef/57/7162609dab394d38bbc7077b7ba0a6f10fb09d8b7701ea56fa1edc0c4345/iso8601-0.1.12-py2.py3-none-any.whl
Collecting soupsieve>=1.2 (from beautifulsoup4)
Downloading https://files.pythonhosted.org/packages/c9/f8/e54b1d771ed4fab66b3fa1c178e137a3c73d84fb6f64329bddf0da5a371c/soupsieve-1.9-py2.py3-none-any.whl
Collecting aiohttp>=3.5.4 (from proxybroker)
Downloading https://files.pythonhosted.org/packages/41/a9/117a4f0a1791b7f9db0cc1d7d85a05a49b66990dc6302bd9fd635c92ab85/aiohttp-3.5.4-cp36-cp36m-win32.whl (583kB)
100% |████████████████████████████████| 583kB 820kB/s
Collecting aiodns>=2.0.0 (from proxybroker)
Downloading https://files.pythonhosted.org/packages/da/01/8f2d49b441573fd2478833bdba91cf0b853b4c750a1fbb9e98de1b94bb22/aiodns-2.0.0-py2.py3-none-any.whl
Collecting maxminddb>=1.4.1 (from proxybroker)
Downloading https://files.pythonhosted.org/packages/83/35/6dc423e0ff354c326849d6d878d104b44be7eec491dcf26787ab3593cd81/maxminddb-1.4.1.tar.gz (264kB)
100% |████████████████████████████████| 266kB 1.6MB/s
Collecting attrs==19.1.0 (from proxybroker)
Downloading https://files.pythonhosted.org/packages/23/96/d828354fa2dbdf216eaa7b7de0db692f12c234f7ef888cc14980ef40d1d2/attrs-19.1.0-py2.py3-none-any.whl
Collecting pycparser (from cffi!=1.11.3,>=1.7->cryptography==2.4.2)
Using cached https://files.pythonhosted.org/packages/68/9e/49196946aee219aead1290e00d1e7fdeab8567783e83e1b9ab5585e6206a/pycparser-2.19.tar.gz
Collecting certifi>=2017.4.17 (from requests>=2.0.0->cfscrape)
Downloading https://files.pythonhosted.org/packages/60/75/f692a584e85b7eaba0e03827b3d51f45f571c2e793dd731e598828d380aa/certifi-2019.3.9-py2.py3-none-any.whl (158kB)
100% |████████████████████████████████| 163kB 2.2MB/s
Collecting urllib3<1.25,>=1.21.1 (from requests>=2.0.0->cfscrape)
Using cached https://files.pythonhosted.org/packages/62/00/ee1d7de624db8ba7090d1226aebefab96a2c71cd5cfa7629d6ad3f61b79e/urllib3-1.24.1-py2.py3-none-any.whl
Collecting chardet<3.1.0,>=3.0.2 (from requests>=2.0.0->cfscrape)
Using cached https://files.pythonhosted.org/packages/bc/a9/01ffebfb562e4274b6487b4bb1ddec7ca55ec7510b22e4c51f14098443b8/chardet-3.0.4-py2.py3-none-any.whl
Collecting idna-ssl>=1.0; python_version < "3.7" (from aiohttp>=3.5.4->proxybroker)
Downloading https://files.pythonhosted.org/packages/46/03/07c4894aae38b0de52b52586b24bf189bb83e4ddabfe2e2c8f2419eec6f4/idna-ssl-1.1.0.tar.gz
Collecting typing-extensions>=3.6.5; python_version < "3.7" (from aiohttp>=3.5.4->proxybroker)
Downloading https://files.pythonhosted.org/packages/0f/62/c66e553258c37c33f9939abb2dd8d2481803d860ff68e635466f12aa7efa/typing_extensions-3.7.2-py3-none-any.whl
Collecting async-timeout<4.0,>=3.0 (from aiohttp>=3.5.4->proxybroker)
Downloading https://files.pythonhosted.org/packages/e1/1e/5a4441be21b0726c4464f3f23c8b19628372f606755a9d2e46c187e65ec4/async_timeout-3.0.1-py3-none-any.whl
Collecting multidict<5.0,>=4.0 (from aiohttp>=3.5.4->proxybroker)
Downloading https://files.pythonhosted.org/packages/b2/e9/181f897ef4b29204f183f1b77f91b7e0ffdcff2a72413fb51b53438d41ef/multidict-4.5.2-cp36-cp36m-win32.whl (131kB)
100% |████████████████████████████████| 133kB 1.6MB/s
Collecting yarl<2.0,>=1.0 (from aiohttp>=3.5.4->proxybroker)
Downloading https://files.pythonhosted.org/packages/fe/5f/218c488cc9c93549fe950d4e7a2f2c17abd374079546878e37118aaf0947/yarl-1.3.0-cp36-cp36m-win32.whl (115kB)
100% |████████████████████████████████| 122kB 3.0MB/s
Collecting typing; python_version < "3.7" (from aiodns>=2.0.0->proxybroker)
Downloading https://files.pythonhosted.org/packages/4a/bd/eee1157fc2d8514970b345d69cb9975dcd1e42cd7e61146ed841f6e68309/typing-3.6.6-py3-none-any.whl
Collecting pycares>=3.0.0 (from aiodns>=2.0.0->proxybroker)
Downloading https://files.pythonhosted.org/packages/e3/a1/e615f4799ed4333bcfa7272e7df815eaa9485fef20e6f6ac16f1a0fe93f4/pycares-3.0.0-cp36-cp36m-win32.whl (56kB)
100% |████████████████████████████████| 61kB 2.0MB/s
Building wheels for collected packages: m3u8, maxminddb, pycparser, idna-ssl
Building wheel for m3u8 (setup.py) ... done
Stored in directory: C:\Users\AppData\Local\pip\Cache\wheels\59\e2\22\fd0ac6bb6cc9d9869fb4d5ad6dbddceef7e6f09efbf4493f58
Building wheel for maxminddb (setup.py) ... done
Stored in directory: C:\Users\AppData\Local\pip\Cache\wheels\58\60\71\9d07e2c0999b13b1f3ca3e2167a3436209e24d7f4ef6e8f919
Building wheel for pycparser (setup.py) ... done
Stored in directory: C:\Users\AppData\Local\pip\Cache\wheels\f2\9a\90\de94f8556265ddc9d9c8b271b0f63e57b26fb1d67a45564511
Building wheel for idna-ssl (setup.py) ... done
Stored in directory: C:\Users\AppData\Local\pip\Cache\wheels\d3\00\b3\32d613e19e08a739751dd6bf998cfed277728f8b2127ad4eb7
Successfully built m3u8 maxminddb pycparser idna-ssl
Error checking for conflicts.
Traceback (most recent call last):
File "C:\Users\AppData\Local\Programs\Python\Python36-32\lib\site-packages\pip_vendor\pkg_resources_init_.py", line 2797, in dep_map
else:
File "C:\Users\AppData\Local\Programs\Python\Python36-32\lib\site-packages\pip_vendor\pkg_resources_init
.py", line 2608, in getattr
environment markers and filter out any dependencies
AttributeError: _DistInfoDistribution__dep_map

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Users\AppData\Local\Programs\Python\Python36-32\lib\site-packages\pip_vendor\pkg_resources_init_.py", line 2788, in parsed_pkg_info
self.check_version_conflict()
File "C:\Users\AppData\Local\Programs\Python\Python36-32\lib\site-packages\pip_vendor\pkg_resources_init
.py", line 2608, in getattr
environment markers and filter out any dependencies
AttributeError: _pkg_info

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "C:\Users\AppData\Local\Programs\Python\Python36-32\lib\site-packages\pip_internal\commands\install.py", line 503, in warn_about_conflicts
package_set, dep_info = check_install_conflicts(to_install)
File "C:\Users\AppData\Local\Programs\Python\Python36-32\lib\site-packages\pip_internal\operations\check.py", line 108, in check_install_conflicts
package_set, _ = create_package_set_from_installed()
File "C:\Users\AppData\Local\Programs\Python\Python36-32\lib\site-packages\pip_internal\operations\check.py", line 47, in create_package_set_from_installed
package_set[name] = PackageDetails(dist.version, dist.requires())
File "C:\Users\AppData\Local\Programs\Python\Python36-32\lib\site-packages\pip_vendor\pkg_resources_init
.py", line 2552, in requires
File "C:\Users\AppData\Local\Programs\Python\Python36-32\lib\site-packages\pip_vendor\pkg_resources_init
.py", line 2799, in dep_map
return
File "C:\Users\AppData\Local\Programs\Python\Python36-32\lib\site-packages\pip_vendor\pkg_resources_init
.py", line 2808, in compute_dependencies
del npath[np], path[np]
File "C:\Users\AppData\Local\Programs\Python\Python36-32\lib\site-packages\pip_vendor\pkg_resources_init
.py", line 2790, in parsed_pkg_info
npath.insert(p, nloc)
File "C:\Users\AppData\Local\Programs\Python\Python36-32\lib\site-packages\pip_vendor\pkg_resources_init
.py", line 1468, in get_metadata
def fn(self, base, resource_name):
File "C:\Users\AppData\Local\Programs\Python\Python36-32\lib\site-packages\pip_vendor\pkg_resources_init
.py", line 1577, in _get
)
FileNotFoundError: [Errno 2] No such file or directory: 'c:\users\\appdata\local\programs\python\python36-32\lib\site-packages\setuptools-39.0.1.dist-info\METADATA'
Installing collected packages: Colorama, lxml, pycparser, cffi, six, asn1crypto, idna, cryptography, certifi, urllib3, chardet, requests, cfscrape, iso8601, m3u8, soupsieve, beautifulsoup4, backports.shutil-get-terminal-size, unidecode, idna-ssl, attrs, typing-extensions, async-timeout, multidict, yarl, aiohttp, typing, pycares, aiodns, maxminddb, proxybroker
The script chardetect.exe is installed in 'C:\Users\AppData\Local\Programs\Python\Python36-32\Scripts' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
The script unidecode.exe is installed in 'C:\Users\AppData\Local\Programs\Python\Python36-32\Scripts' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
The script proxybroker.exe is installed in 'C:\Users\AppData\Local\Programs\Python\Python36-32\Scripts' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
Successfully installed Colorama-0.4.1 aiodns-2.0.0 aiohttp-3.5.4 asn1crypto-0.24.0 async-timeout-3.0.1 attrs-19.1.0 backports.shutil-get-terminal-size-1.0.0 beautifulsoup4-4.7.1 certifi-2019.3.9 cffi-1.12.2 cfscrape-1.9.7 chardet-3.0.4 cryptography-2.4.2 idna-2.8 idna-ssl-1.1.0 iso8601-0.1.12 lxml-4.3.3 m3u8-0.3.7 maxminddb-1.4.1 multidict-4.5.2 proxybroker-0.3.2 pycares-3.0.0 pycparser-2.19 requests-2.21.0 six-1.12.0 soupsieve-1.9 typing-3.6.6 typing-extensions-3.7.2 unidecode-1.0.23 urllib3-1.24.1 yarl-1.3.0
Do you have an account [Y/N]?

@alzamer2
Copy link
Collaborator Author

alzamer2 commented Mar 31, 2019

hi
sorry for delay
i was in work
and i cant upload files there so can you add

import subprocess

after

import sys
import os
import re
import platform

and replace

if not pip_download_ == []:
if not 'idlelib.run' in sys.modules:
pip_main(['install']+pip_download_)
else:
pip_main(['install', '--quiet']+pip_download_)

with:

if not pip_download_ == []:
subprocess.call([sys.executable.replace('pythonw.exe','python.exe')
, '-m', 'pip', 'install']+pip_download_)

@alzamer2
Copy link
Collaborator Author

hi i updated the code can you test it out for me

@darkhelmet2016
Copy link

CR downloader error

@darkhelmet2016
Copy link

It will install on windows 8.1, but am getting these errors trying episodes from today.

Please enter Crunchyroll video URL:
https://www.crunchyroll.com/how-clumsy-you-are-miss-ueno/episode-12-gan-q-ballet
-tan-782477
Now Downloading - How clumsy you are, Miss Ueno. Episode 12 - GAN-Q - BALLET-TAN

Traceback (most recent call last):
File "C:\Users\Public\Crunchyroll-XML-Decoder_link\crunchy-xml-decoder-py3.py"
, line 376, in
make_choise()
File "C:\Users\Public\Crunchyroll-XML-Decoder_link\crunchy-xml-decoder-py3.py"
, line 328, in make_choise
ultimate()
File "crunchy-xml-decoder\ultimate.py", line 178, in ultimate
video_hls(hls_url, video_input, connection_n_)
File "crunchy-xml-decoder\hls.py", line 435, in video_hls
fetch_streams(output, video, connection_n)
File "crunchy-xml-decoder\hls.py", line 339, in fetch_streams
locals()['file_seg_{0}'.format(i)] = open(output_dir+str(i), 'wb')
FileNotFoundError: [Errno 2] No such file or directory: 'C:\Users\Public\Crun
chyroll-XML-Decoder_link\export\How clumsy you are, Miss Ueno. Episode - 12 -
GAN-Q / BALLET-TAN.ts1'
Press any key to continue . . .

and when trying the batch file get this one.

indicate the url : https://www.crunchyroll.com/how-clumsy-you-are-miss-ueno
Traceback (most recent call last):
File "C:\Users\Public\Crunchyroll-XML-Decoder_link\crunchy-xml-decoder-py3.py"
, line 376, in
make_choise()
File "C:\Users\Public\Crunchyroll-XML-Decoder_link\crunchy-xml-decoder-py3.py"
, line 345, in make_choise
autocatch()
File "crunchy-xml-decoder\altfuncs.py", line 121, in autocatch
for i in list_media['data']:
KeyError: 'data'
Press any key to continue . . .

@alzamer2
Copy link
Collaborator Author

alzamer2 commented Apr 1, 2019

hmm it seem there is special character in name , i will find fix for it
as for auto catch i need to look into it

@alzamer2
Copy link
Collaborator Author

alzamer2 commented Apr 1, 2019

ok i updated the code
and i tested and downloaded full series of https://www.crunchyroll.com/how-clumsy-you-are-miss-ueno
can you try it on both 10 and 8.1 for feedback?

@azlim16
Copy link

azlim16 commented Apr 1, 2019

I tryed this python 3 porting
I'm on windows 10
but I have some issue downloading certain title...
http://www.crunchyroll.com/it/mob-psycho-100/episode-13-boss-fight-the-final-light-780932
or
http://www.crunchyroll.com/it/boruto-naruto-next-generations/episode-100-the-predestined-path-782543
with this two for example is starting but it download only about 1:30 minutes at 1080p (my setting is 720p) and no subtitle.
it seems like my premium account is not correctly recognised, because older episode is working fine.

this one won't start to download:
Please enter Crunchyroll video URL:
http://www.crunchyroll.com/it/pop-team-epic/pop-team-epic-tv-special-sconosciuto-782795
Now Downloading - POP TEAM EPIC TV SPECIAL Episode None - None
Traceback (most recent call last):
File "D:\Crunchyroll Downloader Toolkit DX\Crunchyroll-XML-Decoder-master\crunchy-xml-decoder-py3.py", line 376, in
make_choise()
File "D:\Crunchyroll Downloader Toolkit DX\Crunchyroll-XML-Decoder-master\crunchy-xml-decoder-py3.py", line 328, in make_choise
ultimate()
File "crunchy-xml-decoder\ultimate.py", line 169, in ultimate
' - ' + clean_text(media_info['media_metadata']['episode_number']),
File "crunchy-xml-decoder\ultimate.py", line 251, in clean_text
return unidecode(pattern.sub(lambda m: rep[re.escape(m.group(0))], text_))
TypeError: expected string or bytes-like object
Premere un tasto per continuare . . .

other problem
I choose "ony one subtitle=true" in settings but always download all languages

thanks

@darkhelmet2016
Copy link

darkhelmet2016 commented Apr 1, 2019

Testing it on windows 8.1 it does not always suppress the status bar and it will start to flood the screen. Also when it decrypts the subs it is coming up [rus][???????].ass and [ara][???????].ass because it does not recognize the characters. It is also has all the subs coming up as forced.

                     196MB/194MB                         ←[m|%101 @ 2.73Mb/s
                     196MB/194MB                         ←[m|%101 @ 2.73Mb/s
                     196MB/194MB                         ←[m|%101 @ 2.73Mb/s
                     196MB/194MB                         ←[m|%101 @ 2.73Mb/s
                     196MB/194MB                         ←[m|%101 @ 2.73Mb/s
                     196MB/194MB                         ←[m|%101 @ 2.73Mb/s
                     196MB/194MB                         ←[m|%101 @ 2.73Mb/s
                     197MB/194MB                         ←[m|%101 @ 2.73Mb/s

@darkhelmet2016
Copy link

Trying to install on windows 10 and got this error. The correct python is installed so not sure why it is saying 2.7.

The system cannot find the path specified.
python version=2.7.1 64 bit
OS Version=Windows 10
System Type=AMD64
Colorama : installed!
lxml : not installed!, Installing lxml...
wget : installed!
Cryptography : installed!
Cfscrape : installed!
m3u8 : installed!
BeautifulSoup : installed!
backports.shutil_get_terminal_size : installed!
Unidecode : installed!
Requirement already satisfied: lxml in c:\python27\lib\site-packages (4.2.5)
You are using pip version 18.1, however version 19.0.3 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' command.
mkvmerge : not Found!, Downloading mkvmerge...
[*************************************************************************] %100Traceback (most recent call last):
File "C:\Users\Downloads\Crunchyroll-XML-Decoder-py3-master (2)\crunchy-xml-decoder-py3.py", line 25, in
testing_external_moudules_()
File "crunchy-xml-decoder\external_test.py", line 125, in testing_external_moudules_
unzip_(bin_dir__ + "\mkvmerge.zip", bin_dir__)
File "crunchy-xml-decoder\external_test.py", line 155, in unzip_
zf.extract(file,out)
File "C:\Python27\lib\zipfile.py", line 1051, in extract
return self._extract_member(member, path, pwd)
File "C:\Python27\lib\zipfile.py", line 1105, in _extract_member
with self.open(member, pwd=pwd) as source,
File "C:\Python27\lib\zipfile.py", line 1033, in open
close_fileobj=should_close)
File "C:\Python27\lib\zipfile.py", line 553, in init
raise NotImplementedError("compression type %d (%s)" % (self._compress_type, descr))
NotImplementedError: compression type 14 (lzma)
Press any key to continue . . .

@alzamer2
Copy link
Collaborator Author

alzamer2 commented Apr 1, 2019

ok first of all thanks for feedback (i really need tester lol)
@azlim16

  • i originally made code to download anime i will add suport for show later
  • i will look into premium problem
  • 1 subtitle only not activate at moment (will work on it in future)

@darkhelmet2016

about 8.1

  • it seem the script the give color not installed correctly can you post the text that show up but befoer you begin downloading?
  • is ??? only apear when you get only subtitle only or all time?

about 10

  • i'm not sure my self it seem the problem is in the installing of python2.7 and python3
  • try to install 2.7.15 and 3.7 insead

@alzamer2
Copy link
Collaborator Author

alzamer2 commented Apr 1, 2019

@azlim16
i think i fixed premium problem
can you test it out?

@darkhelmet2016
Copy link

@alzamer2 The ??? Think is only effecting subs that have special characters like Russian and Arabic since they are not in standard characters. Русский and لعربية, think they need these added using these instead of reg characters.

Attempting to download English (US) subtitle...
Attempting to decrypt subtitles...
Success! Subtitles decrypted.
Attempting to download Español subtitle...
Attempting to decrypt subtitles...
Success! Subtitles decrypted.
Attempting to download Español (España) subtitle...
Attempting to decrypt subtitles...
Success! Subtitles decrypted.
Attempting to download Français (France) subtitle...
Attempting to decrypt subtitles...
Success! Subtitles decrypted.
Attempting to download Português (Brasil) subtitle...
Attempting to decrypt subtitles...
Success! Subtitles decrypted.
Attempting to download Italiano subtitle...
Attempting to decrypt subtitles...
Success! Subtitles decrypted.
Attempting to download Deutsch subtitle...
Attempting to decrypt subtitles...
Success! Subtitles decrypted.
Attempting to download ??????? subtitle...
Attempting to decrypt subtitles...
Success! Subtitles decrypted.
Starting mkv merge
mkvmerge v10.0.0 ('To Drown In You') 32bit
'C:\Users\Owner\Desktop\Crunchyroll-XML-Decoder-py3-master (1)\export\How clumsy
you are, Miss Ueno. Episode - 11 - INVISI-BLOOMER - THE REAR-SKIRT.ts': Using t
he demultiplexer for the format 'MPEG transport stream'.
'C:\Users\Owner\Desktop\Crunchyroll-XML-Decoder-py3-master (1)\export\How clumsy
you are, Miss Ueno. Episode - 11 - INVISI-BLOOMER - THE REAR-SKIRT[deu][Deutsch
].ass': Using the demultiplexer for the format 'SSA/ASS subtitles'.
'C:\Users\Owner\Desktop\Crunchyroll-XML-Decoder-py3-master (1)\export\How clumsy
you are, Miss Ueno. Episode - 11 - INVISI-BLOOMER - THE REAR-SKIRT[eng][English
(US)].ass': Using the demultiplexer for the format 'SSA/ASS subtitles'.
'C:\Users\Owner\Desktop\Crunchyroll-XML-Decoder-py3-master (1)\export\How clumsy
you are, Miss Ueno. Episode - 11 - INVISI-BLOOMER - THE REAR-SKIRT[fre][Françai
s (France)].ass': Using the demultiplexer for the format 'SSA/ASS subtitles'.
'C:\Users\Owner\Desktop\Crunchyroll-XML-Decoder-py3-master (1)\export\How clumsy
you are, Miss Ueno. Episode - 11 - INVISI-BLOOMER - THE REAR-SKIRT[ita][Italian
o].ass': Using the demultiplexer for the format 'SSA/ASS subtitles'.
'C:\Users\Owner\Desktop\Crunchyroll-XML-Decoder-py3-master (1)\export\How clumsy
you are, Miss Ueno. Episode - 11 - INVISI-BLOOMER - THE REAR-SKIRT[por][Portugu
ês (Brasil)].ass': Using the demultiplexer for the format 'SSA/ASS subtitles'.
'C:\Users\Owner\Desktop\Crunchyroll-XML-Decoder-py3-master (1)\export\How clumsy
you are, Miss Ueno. Episode - 11 - INVISI-BLOOMER - THE REAR-SKIRT[rus][???????
].ass': Using the demultiplexer for the format 'SSA/ASS subtitles'.
'C:\Users\Owner\Desktop\Crunchyroll-XML-Decoder-py3-master (1)\export\How clumsy
you are, Miss Ueno. Episode - 11 - INVISI-BLOOMER - THE REAR-SKIRT[spa][Español
(España)].ass': Using the demultiplexer for the format 'SSA/ASS subtitles'.
'C:\Users\Owner\Desktop\Crunchyroll-XML-Decoder-py3-master (1)\export\How clumsy
you are, Miss Ueno. Episode - 11 - INVISI-BLOOMER - THE REAR-SKIRT[spa][Español
].ass': Using the demultiplexer for the format 'SSA/ASS subtitles'.
'C:\Users\Owner\Desktop\Crunchyroll-XML-Decoder-py3-master (1)\export\How clumsy
you are, Miss Ueno. Episode - 11 - INVISI-BLOOMER - THE REAR-SKIRT.ts' track 0:
Using the output module for the format 'AVC/h.264 (unframed)'.
'C:\Users\Owner\Desktop\Crunchyroll-XML-Decoder-py3-master (1)\export\How clumsy
you are, Miss Ueno. Episode - 11 - INVISI-BLOOMER - THE REAR-SKIRT.ts' track 1:
Using the output module for the format 'AAC'.
'C:\Users\Owner\Desktop\Crunchyroll-XML-Decoder-py3-master (1)\export\How clumsy
you are, Miss Ueno. Episode - 11 - INVISI-BLOOMER - THE REAR-SKIRT[deu][Deutsch
].ass' track 0: Using the output module for the format 'text subtitles'.
'C:\Users\Owner\Desktop\Crunchyroll-XML-Decoder-py3-master (1)\export\How clumsy
you are, Miss Ueno. Episode - 11 - INVISI-BLOOMER - THE REAR-SKIRT[eng][English
(US)].ass' track 0: Using the output module for the format 'text subtitles'.
'C:\Users\Owner\Desktop\Crunchyroll-XML-Decoder-py3-master (1)\export\How clumsy
you are, Miss Ueno. Episode - 11 - INVISI-BLOOMER - THE REAR-SKIRT[fre][Françai
s (France)].ass' track 0: Using the output module for the format 'text subtitles
'.
'C:\Users\Owner\Desktop\Crunchyroll-XML-Decoder-py3-master (1)\export\How clumsy
you are, Miss Ueno. Episode - 11 - INVISI-BLOOMER - THE REAR-SKIRT[ita][Italian
o].ass' track 0: Using the output module for the format 'text subtitles'.
'C:\Users\Owner\Desktop\Crunchyroll-XML-Decoder-py3-master (1)\export\How clumsy
you are, Miss Ueno. Episode - 11 - INVISI-BLOOMER - THE REAR-SKIRT[por][Portugu
ês (Brasil)].ass' track 0: Using the output module for the format 'text subtitle
s'.
'C:\Users\Owner\Desktop\Crunchyroll-XML-Decoder-py3-master (1)\export\How clumsy
you are, Miss Ueno. Episode - 11 - INVISI-BLOOMER - THE REAR-SKIRT[rus][???????
].ass' track 0: Using the output module for the format 'text subtitles'.
'C:\Users\Owner\Desktop\Crunchyroll-XML-Decoder-py3-master (1)\export\How clumsy
you are, Miss Ueno. Episode - 11 - INVISI-BLOOMER - THE REAR-SKIRT[spa][Español
(España)].ass' track 0: Using the output module for the format 'text subtitles'
.
'C:\Users\Owner\Desktop\Crunchyroll-XML-Decoder-py3-master (1)\export\How clumsy
you are, Miss Ueno. Episode - 11 - INVISI-BLOOMER - THE REAR-SKIRT[spa][Español
].ass' track 0: Using the output module for the format 'text subtitles'.
The file 'C:\Users\Owner\Desktop\Crunchyroll-XML-Decoder-py3-master (1)\export\H
ow clumsy you are, Miss Ueno. Episode - 11 - INVISI-BLOOMER - THE REAR-SKIRT[720
p].mkv' has been opened for writing.
'C:\Users\Owner\Desktop\Crunchyroll-XML-Decoder-py3-master (1)\export\How clumsy
you are, Miss Ueno. Episode - 11 - INVISI-BLOOMER - THE REAR-SKIRT.ts' track 0:
Extracted the aspect ratio information from the MPEG-4 layer 10 (AVC) video dat
a and set the display dimensions to 1280/720.
Progress: 100%
The cue entries (the index) are being written...
Multiplexing took 6 seconds.
Merge process complete
Starting Final Cleanup

@alzamer2
Copy link
Collaborator Author

alzamer2 commented Apr 2, 2019

hhm ok i will found a workout for it but for later
as from what i see it does not affect the script and it working

@alzamer2
Copy link
Collaborator Author

alzamer2 commented Apr 2, 2019

@darkhelmet2016
did you try to reistall python 2.7.15 and 3.7 on 10?

@alzamer2
Copy link
Collaborator Author

alzamer2 commented Apr 2, 2019

@azlim16
i think i fixed premium problem
can you test it out?

sorry forgot to merge the fix
can you try now?

@darkhelmet2016
Copy link

darkhelmet2016 commented Apr 2, 2019

When installing python would adding it to the path in the options fix/suppress this?
The script chardetect.exe is installed in 'C:\Users\AppData\Local\Programs\Python\Python37-32\Scripts' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
Running setup.py install for m3u8 ... done
The script unidecode.exe is installed in 'C:\Users\AppData\Local\Programs\Python\Python37-32\Scripts' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
Running setup.py install for maxminddb ... done
The script proxybroker.exe is installed in 'C:\Users\AppData\Local\Programs\Python\Python37-32\Scripts' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
python version=3.7.0 32 bit
OS Version=Windows 10
System Type=AMD64
Colorama : installed!
lxml : installed!
wget : installed!
Cryptography : installed!
Cfscrape : installed!
m3u8 : installed!
BeautifulSoup : installed!
backports.shutil_get_terminal_size : installed!
Unidecode : installed!
proxybroker : installed!
User Name = Guest
Membership Type = Guest
Options:
1.- Download Anime
2.- Download Subtitle only
3.- Login
4.- Login As Guest
5.- Download an entire Anime(Autocatch links)
6.- Run Queue

@darkhelmet2016
Copy link

It is also having trouble downloading movies.


CrunchyRoll Downloader Toolkit DX v0.98b

Crunchyroll hasn't changed anything.

If you don't have a premium account, go and sign up for one now. It's well worth
it, and supports the animators.


Booting up...

Please enter Crunchyroll video URL:
http://www.crunchyroll.com/black-jack-the-movie/black-jack-the-movie-black-jack-
the-movie-dub-743023
Now Downloading - Black Jack The Movie Episode None - Black Jack The Movie (Dub)

Traceback (most recent call last):
File "C:\Users\Downloads\Crunchyroll-XML-Decoder-py3-master (2)\crunchy-
xml-decoder-py3.py", line 376, in
make_choise()
File "C:\Users\Downloads\Crunchyroll-XML-Decoder-py3-master (2)\crunchy-
xml-decoder-py3.py", line 328, in make_choise
ultimate()
File "crunchy-xml-decoder\ultimate.py", line 169, in ultimate
' - ' + clean_text(media_info['media_metadata']['episode_number']),
File "crunchy-xml-decoder\ultimate.py", line 251, in clean_text
return unidecode(pattern.sub(lambda m: rep[re.escape(m.group(0))], text_))
TypeError: expected string or bytes-like object
Press any key to continue . . .

@alzamer2
Copy link
Collaborator Author

alzamer2 commented Apr 2, 2019

When installing python would adding it to the path in the options fix/suppress this?
The script chardetect.exe is installed in 'C:\Users\AppData\Local\Programs\Python\Python37-32\Scripts' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
Running setup.py install for m3u8 ... done
The script unidecode.exe is installed in 'C:\Users\AppData\Local\Programs\Python\Python37-32\Scripts' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
Running setup.py install for maxminddb ... done
The script proxybroker.exe is installed in 'C:\Users\AppData\Local\Programs\Python\Python37-32\Scripts' which is not on PATH.
Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.
python version=3.7.0 32 bit
OS Version=Windows 10
System Type=AMD64
Colorama : installed!
lxml : installed!
wget : installed!
Cryptography : installed!
Cfscrape : installed!
m3u8 : installed!
BeautifulSoup : installed!
backports.shutil_get_terminal_size : installed!
Unidecode : installed!
proxybroker : installed!
User Name = Guest
Membership Type = Guest
Options:
1.- Download Anime
2.- Download Subtitle only
3.- Login
4.- Login As Guest
5.- Download an entire Anime(Autocatch links)
6.- Run Queue

is not working now on win10?

@alzamer2
Copy link
Collaborator Author

alzamer2 commented Apr 2, 2019

i will look into movies

@darkhelmet2016
Copy link

It works on windows 10 but it keeps giving those path issues when installing.

@darkhelmet2016
Copy link

Not sure but think this because the episode does not have an episode name.
Traceback (most recent call last):
File "C:\Users\Downloads\Crunchyroll-XML-Decoder-py3-master (2)\crunchy-
xml-decoder-py3.py", line 376, in
make_choise()
File "C:\Users\Downloads\Crunchyroll-XML-Decoder-py3-master (2)\crunchy-
xml-decoder-py3.py", line 328, in make_choise
ultimate()
File "crunchy-xml-decoder\ultimate.py", line 170, in ultimate
' - ' + clean_text(media_info['media_metadata']['episode_title']),'.ts'],
File "crunchy-xml-decoder\ultimate.py", line 251, in clean_text
return unidecode(pattern.sub(lambda m: rep[re.escape(m.group(0))], text_))
TypeError: expected string or bytes-like object
Press any key to continue . . .

@alzamer2
Copy link
Collaborator Author

alzamer2 commented Apr 2, 2019

It seem so
Will try to make it check if episodes number there before progress

@darkhelmet2016
Copy link

It seem so
Will try to make it check if episodes number there before progress

Sometimes when they put a new episode up they will not give it an episode name all the time right away like with the pop team epic specials from today.

@azlim16
Copy link

azlim16 commented Apr 2, 2019

@alzamer2
I tried with the fix for premium account, now seem working fine, I downloaded the show aired today and yesterday without problems

@reikitsune
Copy link

I'm getting this error:

python version=2.7.9 64 bit
OS Version=Windows 8 6.2.9200
System Type=AMD64
Colorama : installed!
lxml : installed!
wget : installed!
Cryptography : installed!
Cfscrape : installed!
m3u8 : installed!
BeautifulSoup : installed!
backports.shutil_get_terminal_size : installed!
Unidecode : installed!
Traceback (most recent call last):
File "C:\Users\Public\Crunchyroll-XML-Decoder_link\crunchy-xml-decoder-py3.py", line 26, in
from login import login, getuserstatus
File "crunchy-xml-decoder\login.py", line 7, in
from configparser import ConfigParser
ImportError: No module named configparser
Press any key to continue . . .

@alzamer2
Copy link
Collaborator Author

alzamer2 commented Apr 4, 2019

@reikitsune

I'm getting this error:

python version=2.7.9 64 bit
OS Version=Windows 8 6.2.9200
System Type=AMD64
Colorama : installed!
lxml : installed!
wget : installed!
Cryptography : installed!
Cfscrape : installed!
m3u8 : installed!
BeautifulSoup : installed!
backports.shutil_get_terminal_size : installed!
Unidecode : installed!
Traceback (most recent call last):
File "C:\Users\Public\Crunchyroll-XML-Decoder_link\crunchy-xml-decoder-py3.py", line 26, in
from login import login, getuserstatus
File "crunchy-xml-decoder\login.py", line 7, in
from configparser import ConfigParser
ImportError: No module named configparser
Press any key to continue . . .

try to download python 3.3 or newer
as i said this script is for 3.3 or newer

@alzamer2
Copy link
Collaborator Author

alzamer2 commented Apr 4, 2019

ohh sorry
when i looked into it it seem pip is not included in 3.3
you have 2 option
1- to upgrade your python to 3.4 or newwer
2- to download and run this link https://bootstrap.pypa.io/get-pip.py

@alzamer2
Copy link
Collaborator Author

alzamer2 commented Apr 10, 2019

@Virusf
thanks for code
i tried it out, it works but these 2 line are extra and can be removed:

aList = []
aList.reverse()

i fixed the problem in the code and pushed(uploaded) it
test it out

@Virusf
Copy link

Virusf commented Apr 11, 2019

@alzamer2
and not the change does not work
I activated
print (list_series ['data'])
print (list_media)
and here is the result

indicate the url : http://www.crunchyroll.com/fr/the-rising-of-the-shield-hero
[{'series_id': '269077', 'url': 'http://www.crunchyroll.com/en-gb/tabimachi-lateshow'}, {'series_id': '270667', 'url': 'http://www.crunchyroll.com/en-gb/taboo-tattoo'}, {'series_id': '274447', 'url': 'http://www.crunchyroll.com/en-gb/taisho-mebiusline-chicchaisan'}, {'series_id': '265707', 'url': 'http://www.crunchyroll.com/en-gb/takamiya-nasuno-desu'}, {'series_id': '271967', 'url': 'http://www.crunchyroll.com/en-gb/tamayura-hitotose'}, {'series_id': '269895', 'url': 'http://www.crunchyroll.com/en-gb/tanaka-kun-is-always-listless'}, {'series_id': '268051', 'url': 'http://www.crunchyroll.com/en-gb/tantei-team-kz-jiken-note'}, {'series_id': '246840', 'url': 'http://www.crunchyroll.com/en-gb/tari-tari'}, {'series_id': '249472', 'url': 'http://www.crunchyroll.com/en-gb/teekyu'}, {'series_id': '191638', 'url': 'http://www.crunchyroll.com/en-gb/tegami-bachi-letter-bee'}, {'series_id': '268865', 'url': 'http://www.crunchyroll.com/en-gb/tenjho-tenge'}, {'series_id': '263081', 'url': 'http://www.crunchyroll.com/en-gb/terraformars'}, {'series_id': '265655', 'url': 'http://www.crunchyroll.com/en-gb/tesagure-bukatsumono'}, {'series_id': '277041', 'url': 'http://www.crunchyroll.com/en-gb/that-time-i-got-reincarnated-as-a-slime'}, {'series_id': '246428', 'url': 'http://www.crunchyroll.com/en-gb/the-ambition-of-oda-nobuna'}, {'series_id': '271271', 'url': 'http://www.crunchyroll.com/en-gb/the-ancient-magus-bride'}, {'series_id': '267981', 'url': 'http://www.crunchyroll.com/en-gb/the-asterisk-war'}, {'series_id': '260307', 'url': 'http://www.crunchyroll.com/en-gb/the-comic-artist-and-his-assistants'}, {'series_id': '266499', 'url': 'http://www.crunchyroll.com/en-gb/the-diary-of-ochibi-motion-manga'}, {'series_id': '272659', 'url': 'http://www.crunchyroll.com/en-gb/the-dragon-dentist'}, {'series_id': '255603', 'url': 'http://www.crunchyroll.com/en-gb/the-eccentric-family'}, {'series_id': '272943', 'url': 'http://www.crunchyroll.com/en-gb/the-eccentric-family-2'}, {'series_id': '260455', 'url': 'http://www.crunchyroll.com/en-gb/the-file-of-young-kindaichi-returns'}, {'series_id': '263145', 'url': 'http://www.crunchyroll.com/en-gb/the-fruit-of-grisaia'}, {'series_id': '271209', 'url': 'http://www.crunchyroll.com/en-gb/the-galaxy-railways-a-letter-from-the-abandoned-planet'}, {'series_id': '275567', 'url': 'http://www.crunchyroll.com/en-gb/the-garden-of-sinners'}, {'series_id': '271673', 'url': 'http://www.crunchyroll.com/en-gb/the-glass-mask-year-3-class-d'}, {'series_id': '270673', 'url': 'http://www.crunchyroll.com/en-gb/the-highschool-life-of-a-fudanshi'}, {'series_id': '234109', 'url': 'http://www.crunchyroll.com/en-gb/the-idol-master'}, {'series_id': '274857', 'url': 'http://www.crunchyroll.com/en-gb/the-idolmster-cinderella-girls'}, {'series_id': '272919', 'url': 'http://www.crunchyroll.com/en-gb/the-idolmster-cinderella-girls-theater'}, {'series_id': '274373', 'url': 'http://www.crunchyroll.com/en-gb/the-idolmster-side-m'}, {'series_id': '277093', 'url': 'http://www.crunchyroll.com/en-gb/the-idolmster-sidem-wakeatte-mini'}, {'series_id': '260315', 'url': 'http://www.crunchyroll.com/en-gb/the-irregular-at-magic-high-school'}, {'series_id': '273749', 'url': 'http://www.crunchyroll.com/en-gb/the-irresponsible-galaxy-tylor'}, {'series_id': '276755', 'url': 'http://www.crunchyroll.com/en-gb/the-journey-home'}, {'series_id': '260271', 'url': 'http://www.crunchyroll.com/en-gb/the-kawai-complex-guide-to-manors-and-hostel-behavior'}, {'series_id': '272895', 'url': 'http://www.crunchyroll.com/en-gb/the-laughing-salesman'}, {'series_id': '269801', 'url': 'http://www.crunchyroll.com/en-gb/the-lost-village'}, {'series_id': '277515', 'url': 'http://www.crunchyroll.com/en-gb/the-magnificent-kotobuki'}, {'series_id': '276751', 'url': 'http://www.crunchyroll.com/en-gb/the-master-of-ragnarok-blesser-of-einherjar'}, {'series_id': '124056', 'url': 'http://www.crunchyroll.com/en-gb/the-melody-of-oblivion'}, {'series_id': '273399', 'url': 'http://www.crunchyroll.com/en-gb/the-moment-you-fall-in-love'}, {'series_id': '270663', 'url': 'http://www.crunchyroll.com/en-gb/the-morose-mononokean'}, {'series_id': '265419', 'url': 'http://www.crunchyroll.com/en-gb/the-nameko-families'}, {'series_id': '267969', 'url': 'http://www.crunchyroll.com/en-gb/the-perfect-insider'}, {'series_id': '249482', 'url': 'http://www.crunchyroll.com/en-gb/the-pet-girl-of-sakurasou'}, {'series_id': '258763', 'url': 'http://www.crunchyroll.com/en-gb/the-pilots-love-song'}, {'series_id': '47460', 'url': 'http://www.crunchyroll.com/en-gb/the-place-promised-in-our-early-days'}, {'series_id': '277352', 'url': 'http://www.crunchyroll.com/en-gb/the-price-of-smiles'}, {'series_id': '240608', 'url': 'http://www.crunchyroll.com/en-gb/the-prince-of-tennis-ii'}, {'series_id': '266593', 'url': 'http://www.crunchyroll.com/en-gb/the-prince-of-tennis-ii-ova-vs-genius-10'}, {'series_id': '260919', 'url': 'http://www.crunchyroll.com/en-gb/the-princess-and-the-pilot'}, {'series_id': '277377', 'url': 'http://www.crunchyroll.com/en-gb/the-promised-neverland'}, {'series_id': '277381', 'url': 'http://www.crunchyroll.com/en-gb/the-quintessential-quintuplets'}, {'series_id': '273845', 'url': 'http://www.crunchyroll.com/en-gb/the-reflection'}, {'series_id': '277339', 'url': 'http://www.crunchyroll.com/en-gb/the-rising-of-the-shield-hero'}, {'series_id': '272907', 'url': 'http://www.crunchyroll.com/en-gb/the-royal-tutor'}, {'series_id': '275129', 'url': 'http://www.crunchyroll.com/en-gb/the-ryuos-work-is-never-done'}, {'series_id': '254021', 'url': 'http://www.crunchyroll.com/en-gb/the-severing-crime-edge'}, {'series_id': '272871', 'url': 'http://www.crunchyroll.com/en-gb/the-silver-guardian'}, {'series_id': '276964', 'url': 'http://www.crunchyroll.com/en-gb/the-sprites-of-floria'}, {'series_id': '266503', 'url': 'http://www.crunchyroll.com/en-gb/the-tenth-prism-motion-manga'}, {'series_id': '264417', 'url': 'http://www.crunchyroll.com/en-gb/the-testament-of-sister-new-devil'}, {'series_id': '273151', 'url': 'http://www.crunchyroll.com/en-gb/the-third-the-girl-with-the-blue-eye'}, {'series_id': '62208', 'url': 'http://www.crunchyroll.com/en-gb/the-tower-of-druaga-the-aegis-of-uruk-'}, {'series_id': '119016', 'url': 'http://www.crunchyroll.com/en-gb/the-tower-of-druaga-the-sword-of-uruk-'}, {'series_id': '251301', 'url': 'http://www.crunchyroll.com/en-gb/the-unlimited-hyobu-kyosuke'}, {'series_id': '219879', 'url': 'http://www.crunchyroll.com/en-gb/the-world-god-only-knows'}, {'series_id': '260443', 'url': 'http://www.crunchyroll.com/en-gb/the-world-is-still-beautiful'}, {'series_id': '272889', 'url': 'http://www.crunchyroll.com/en-gb/the-world-yamizukan'}, {'series_id': '270699', 'url': 'http://www.crunchyroll.com/en-gb/this-art-club-has-a-problem'}, {'series_id': '269079', 'url': 'http://www.crunchyroll.com/en-gb/this-boy-is-a-professional-wizard'}, {'series_id': '270477', 'url': 'http://www.crunchyroll.com/en-gb/this-boy-suffers-from-crystallization'}, {'series_id': '270777', 'url': 'http://www.crunchyroll.com/en-gb/thunderbolt-fantasy'}, {'series_id': '271509', 'url': 'http://www.crunchyroll.com/en-gb/tiger-mask-w'}, {'series_id': '267947', 'url': 'http://www.crunchyroll.com/en-gb/time-bokan-24'}, {'series_id': '87731', 'url': 'http://www.crunchyroll.com/en-gb/time-of-eve'}, {'series_id': '271479', 'url': 'http://www.crunchyroll.com/en-gb/to-be-hero'}, {'series_id': '276405', 'url': 'http://www.crunchyroll.com/en-gb/to-be-heroine'}, {'series_id': '267105', 'url': 'http://www.crunchyroll.com/en-gb/to-love-ru'}, {'series_id': '266779', 'url': 'http://www.crunchyroll.com/en-gb/to-love-ru-darkness'}, {'series_id': '275403', 'url': 'http://www.crunchyroll.com/en-gb/todays-menu-for-the-emiya-family'}, {'series_id': '258757', 'url': 'http://www.crunchyroll.com/en-gb/tonari-no-seki-kun-the-master-of-killing-time'}, {'series_id': '269807', 'url': 'http://www.crunchyroll.com/en-gb/tonkatsu-dj-agetaro'}, {'series_id': '249364', 'url': 'http://www.crunchyroll.com/en-gb/toradora'}, {'series_id': '257683', 'url': 'http://www.crunchyroll.com/en-gb/toriko'}, {'series_id': '246430', 'url': 'http://www.crunchyroll.com/en-gb/total-eclipse'}, {'series_id': '271531', 'url': 'http://www.crunchyroll.com/en-gb/touken-ranbu-hanamaru'}, {'series_id': '269039', 'url': 'http://www.crunchyroll.com/en-gb/toward-the-terra'}, {'series_id': '248024', 'url': 'http://www.crunchyroll.com/en-gb/traveling-daru'}, {'series_id': '265659', 'url': 'http://www.crunchyroll.com/en-gb/triage-x'}, {'series_id': '263123', 'url': 'http://www.crunchyroll.com/en-gb/tribe-cool-crew'}, {'series_id': '263097', 'url': 'http://www.crunchyroll.com/en-gb/trinity-seven'}, {'series_id': '273429', 'url': 'http://www.crunchyroll.com/en-gb/true-tears'}, {'series_id': '272961', 'url': 'http://www.crunchyroll.com/en-gb/tsugumomo'}, {'series_id': '272937', 'url': 'http://www.crunchyroll.com/en-gb/tsukigakirei'}, {'series_id': '265953', 'url': 'http://www.crunchyroll.com/en-gb/tsukimonogatari'}, {'series_id': '274413', 'url': 'http://www.crunchyroll.com/en-gb/tsukipro-the-animation'}, {'series_id': '273667', 'url': 'http://www.crunchyroll.com/en-gb/tsuredure-children'}, {'series_id': '244256', 'url': 'http://www.crunchyroll.com/en-gb/tsuritama'}, {'series_id': '277142', 'url': 'http://www.crunchyroll.com/en-gb/tsurune'}, {'series_id': '234116', 'url': 'http://www.crunchyroll.com/en-gb/twin-angel-twinkle-paradise'}, {'series_id': '272913', 'url': 'http://www.crunchyroll.com/en-gb/twin-angels-break'}, {'series_id': '269795', 'url': 'http://www.crunchyroll.com/en-gb/twin-star-exorcists'}, {'series_id': '274457', 'url': 'http://www.crunchyroll.com/en-gb/twocar'}]
{'error': True, 'code': 'bad_request', 'message': 'No Collection or Series specified'}
Traceback (most recent call last):
File "crunchy-xml-decoder-py3.py", line 422, in
make_choise()
File "crunchy-xml-decoder-py3.py", line 380, in make_choise
autocatch()
File "crunchy-xml-decoder\altfuncs.py", line 190, in autocatch
for i in list_media['data']:
KeyError: 'data'

and go from http://www.crunchyroll.com/fr/ to http://www.crunchyroll.com/en-gb

@darkhelmet2016
Copy link

I can tell you right now The Third: The Girl with the Blue Eye is probably locked to US only since the publisher does not have distro rights outside of the country for it. The True code it is referring to believe is the Country code that you see at the bottom of the main page that lets you switch the country and language where it says "True code" Not sure if it even matters but having the titles in '' comes up as a 404 when you try to go to a link and don't remove them. The Third: The Girl with the Blue Eye begins streaming today, 5/10, at 4pm PST and will be available to members in the United States and Canada.

@alzamer2
Copy link
Collaborator Author

@darkhelmet2016
these 2 anime are not us only anime, in fact, they are not restricted at all
here trick to check if that anime in which country this anime is restricted
get the series page link then add ".rss" at end then open that link
look for media:restriction relationship="allow" type="country" and within it will be which country can watch this anime

@alzamer2
Copy link
Collaborator Author

@darkhelmet2016
these 2 anime are not us only anime, in fact, they are not restricted at all
here trick to check if that anime in which country this anime is restricted
get the series page link then add ".rss" at end then open that link
look for media:restriction relationship="allow" type="country" and within it will be which country can watch this anime

lol
chevked thiere pag now , they locked now
only these country has view to them
ca pr us vi as gu mp um

@darkhelmet2016
Copy link

@alzamer2 https://www.crunchyroll.com/publisher/nozomientertainment Usually only services rights to US/CA because they are based solely in the US, you can even ask Crunchyroll or Nozomi, or just look in the blog when they post info and watch the rage post when other countries can not view a show because of not having rights to stream outside of North America. If they did update the territories as you say then they should have updated that link I showed as that is normally where they will say what country has what viewing rights.

1 similar comment
@darkhelmet2016
Copy link

@alzamer2 https://www.crunchyroll.com/publisher/nozomientertainment Usually only services rights to US/CA because they are based solely in the US, you can even ask Crunchyroll or Nozomi, or just look in the blog when they post info and watch the rage post when other countries can not view a show because of not having rights to stream outside of North America. If they did update the territories as you say then they should have updated that link I showed as that is normally where they will say what country has what viewing rights.

@Virusf
Copy link

Virusf commented Apr 11, 2019

@alzamer2 OK everything works well for me on the auto catch

@alzamer2
Copy link
Collaborator Author

lol
i dont remember the name but i remember there was anime that was us/ca locked too
i enabled proxy option in settings

@alzamer2
Copy link
Collaborator Author

alzamer2 commented Apr 12, 2019

and i cleaned HLS code
i found it faster on my machine can some1 test it out?

@Virusf
Copy link

Virusf commented Apr 12, 2019

hold another test with no account

Do you have an account [Y/N]?n
Traceback (most recent call last):
File "crunchy-xml-decoder-py3.py", line 99, in
login('', '')
File "crunchy-xml-decoder\login.py", line 123, in login
userstatus = getuserstatus(False, sess_id_usa)
File "crunchy-xml-decoder\login.py", line 43, in getuserstatus
checkusaid2 = session.get('http://api.crunchyroll.com/start_session.0.json?session_id=' + sess_id_).json()
UnboundLocalError: local variable 'sess_id_' referenced before assignment

edit and with an account:

Do you have an account [Y/N]?y
Username: xxx
Password(don't worry the password are typing but hidden:
Traceback (most recent call last):
File "crunchy-xml-decoder-py3.py", line 97, in
login(username, password)
File "crunchy-xml-decoder\login.py", line 123, in login
userstatus = getuserstatus(False, sess_id_usa)
File "crunchy-xml-decoder\login.py", line 43, in getuserstatus
checkusaid2 = session.get('http://api.crunchyroll.com/start_session.0.json?session_id=' + sess_id_).json()
UnboundLocalError: local variable 'sess_id_' referenced before assignment

@alzamer2

This comment has been minimized.

@alzamer2
Copy link
Collaborator Author

hold another test with no account

Do you have an account [Y/N]?n
Traceback (most recent call last):
File "crunchy-xml-decoder-py3.py", line 99, in
login('', '')
File "crunchy-xml-decoder\login.py", line 123, in login
userstatus = getuserstatus(False, sess_id_usa)
File "crunchy-xml-decoder\login.py", line 43, in getuserstatus
checkusaid2 = session.get('http://api.crunchyroll.com/start_session.0.json?session_id=' + sess_id_).json()
UnboundLocalError: local variable 'sess_id_' referenced before assignment

edit and with an account:

Do you have an account [Y/N]?y
Username: xxx
Password(don't worry the password are typing but hidden:
Traceback (most recent call last):
File "crunchy-xml-decoder-py3.py", line 97, in
login(username, password)
File "crunchy-xml-decoder\login.py", line 123, in login
userstatus = getuserstatus(False, sess_id_usa)
File "crunchy-xml-decoder\login.py", line 43, in getuserstatus
checkusaid2 = session.get('http://api.crunchyroll.com/start_session.0.json?session_id=' + sess_id_).json()
UnboundLocalError: local variable 'sess_id_' referenced before assignment

fixed try it out

@Virusf
Copy link

Virusf commented Apr 12, 2019

OK everything works fine
good work

@Virusf
Copy link

Virusf commented Apr 12, 2019

new bug

1


---- Start New Export ----

CrunchyRoll Downloader Toolkit DX v0.98b

Crunchyroll hasn't changed anything.

If you don't have a premium account, go and sign up for one now. It's well worth it, and supports the animators.


Booting up...

Please enter Crunchyroll video URL:
https://www.crunchyroll.com/fr/hitoribocchi-no-marumaruseikatsu/episode-2-actually-thank-you-782899
Traceback (most recent call last):
File "crunchy-xml-decoder-py3.py", line 378, in
make_choise()
File "crunchy-xml-decoder-py3.py", line 329, in make_choise
ultimate()
File "crunchy-xml-decoder\ultimate.py", line 128, in ultimate
hls_url = stream_url[None]
KeyError: None

@alzamer2
Copy link
Collaborator Author

hmm
can you try it again and see if the error getting repeated?
if the error is repeated
right click on the page(not video) and choose view sourcecode
then looks for a line that begins with "vilos.config.media" and post it here

@alzamer2
Copy link
Collaborator Author

@Virusf
i'm not sure
but i think i fixed your prpblem
can you try it out?

@Virusf
Copy link

Virusf commented Apr 13, 2019

your old version is working now and the new one is working too

@darkhelmet2016
Copy link

Traceback (most recent call last): |%100.0
File "C:\Program Files (x86)\Python36-32\lib\threading.py", line 916, in _boot
strap_inner
self.run()
File "C:\Program Files (x86)\Python36-32\lib\threading.py", line 864, in run
self._target(*self._args, **self.kwargs)
File "crunchy-xml-decoder\hls.py", line 289, in down_thread
download(video, output, seg_url[i-1], i, connection_n)
File "crunchy-xml-decoder\hls.py", line 279, in download
copy_with_decrypt(raw, output, video.keys[0], video.media_sequence + seg_n-1
)
File "crunchy-xml-decoder\hls.py", line 204, in copy_with_decrypt
data = input.read(blocksize)
File "crunchy-xml-decoder\hls.py", line 95, in read
download_size
[self.cur-1] = self.offset
IndexError: list assignment index out of range

@alzamer2
Copy link
Collaborator Author

@darkhelmet2016
i updated the code
the new code should use hls_.py (still under test)
not hls.py

@alzamer2
Copy link
Collaborator Author

can you download the new code and post the link you used so i can test it on my pc?

@alzamer2
Copy link
Collaborator Author

hi @darkhelmet2016
you did not replay to me
everything ok?

@darkhelmet2016
Copy link

Sorry, was long day and git hub has for some reason reduced me to making one or two post a day.
This time it would seem it is not decoding the characters for Russian as you can see in the log.

Please enter Crunchyroll video URL:
http://www.crunchyroll.com/hitoribocchi-no-marumaruseikatsu/episode-3-getting-it
-across-by-spinning-your-wheels-782900
Now Downloading - Hitoribocchi no Marumaruseikatsu Episode 3 - Getting It Across
by Spinning Your Wheels
949MB/949MB |%100 @ 10.78Mb/s
Part#145 |%100.0


---- Downloading Subtitle ----

Attempting to download English (US) subtitle...
Attempting to download Português (Brasil) subtitle...
Attempting to download ??????? subtitle...
Attempting to download Español subtitle...
Attempting to download Español (España) subtitle...
Attempting to download Français (France) subtitle...
Attempting to download Italiano subtitle...
Attempting to download Deutsch subtitle...
Starting mkv merge
Deutsch English (US) English (US)
English (US) English (US) English (US)
Français (France) English (US) English (US) English (US)
Italiano English (US) English (US) English (US)
Português (Brasil) English (US) English (US) English (US)
??????? English (US) English (US) English (US)
Español (España) English (US) English (US) English (US)
Español English (US) English (US) English (US)
mkvmerge v10.0.0 ('To Drown In You') 32bit
'C:\Users\Owner\Downloads\Crunchyroll-XML-Decoder-py3-master (1)\export\Hitoribo
cchi no Marumaruseikatsu Episode - 3 - Getting It Across by Spinning Your Wheels
.ts': Using the demultiplexer for the format 'MPEG transport stream'.
'C:\Users\Owner\Downloads\Crunchyroll-XML-Decoder-py3-master (1)\export\Hitoribo
cchi no Marumaruseikatsu Episode - 3 - Getting It Across by Spinning Your Wheels
[deu][Deutsch].ass': Using the demultiplexer for the format 'SSA/ASS subtitles'.

'C:\Users\Owner\Downloads\Crunchyroll-XML-Decoder-py3-master (1)\export\Hitoribo
cchi no Marumaruseikatsu Episode - 3 - Getting It Across by Spinning Your Wheels
[eng][English (US)].ass': Using the demultiplexer for the format 'SSA/ASS subtit
les'.
'C:\Users\Owner\Downloads\Crunchyroll-XML-Decoder-py3-master (1)\export\Hitoribo
cchi no Marumaruseikatsu Episode - 3 - Getting It Across by Spinning Your Wheels
[fre][Français (France)].ass': Using the demultiplexer for the format 'SSA/ASS s
ubtitles'.
'C:\Users\Owner\Downloads\Crunchyroll-XML-Decoder-py3-master (1)\export\Hitoribo
cchi no Marumaruseikatsu Episode - 3 - Getting It Across by Spinning Your Wheels
[ita][Italiano].ass': Using the demultiplexer for the format 'SSA/ASS subtitles'
.
'C:\Users\Owner\Downloads\Crunchyroll-XML-Decoder-py3-master (1)\export\Hitoribo
cchi no Marumaruseikatsu Episode - 3 - Getting It Across by Spinning Your Wheels
[por][Português (Brasil)].ass': Using the demultiplexer for the format 'SSA/ASS
subtitles'.
'C:\Users\Owner\Downloads\Crunchyroll-XML-Decoder-py3-master (1)\export\Hitoribo
cchi no Marumaruseikatsu Episode - 3 - Getting It Across by Spinning Your Wheels
[rus][???????].ass': Using the demultiplexer for the format 'SSA/ASS subtitles'.

'C:\Users\Owner\Downloads\Crunchyroll-XML-Decoder-py3-master (1)\export\Hitoribo
cchi no Marumaruseikatsu Episode - 3 - Getting It Across by Spinning Your Wheels
[spa][Español (España)].ass': Using the demultiplexer for the format 'SSA/ASS su
btitles'.
'C:\Users\Owner\Downloads\Crunchyroll-XML-Decoder-py3-master (1)\export\Hitoribo
cchi no Marumaruseikatsu Episode - 3 - Getting It Across by Spinning Your Wheels
[spa][Español].ass': Using the demultiplexer for the format 'SSA/ASS subtitles'.

'C:\Users\Owner\Downloads\Crunchyroll-XML-Decoder-py3-master (1)\export\Hitoribo
cchi no Marumaruseikatsu Episode - 3 - Getting It Across by Spinning Your Wheels
.ts' track 0: Using the output module for the format 'AVC/h.264 (unframed)'.
'C:\Users\Owner\Downloads\Crunchyroll-XML-Decoder-py3-master (1)\export\Hitoribo
cchi no Marumaruseikatsu Episode - 3 - Getting It Across by Spinning Your Wheels
.ts' track 1: Using the output module for the format 'AAC'.
'C:\Users\Owner\Downloads\Crunchyroll-XML-Decoder-py3-master (1)\export\Hitoribo
cchi no Marumaruseikatsu Episode - 3 - Getting It Across by Spinning Your Wheels
[deu][Deutsch].ass' track 0: Using the output module for the format 'text subtit
les'.
'C:\Users\Owner\Downloads\Crunchyroll-XML-Decoder-py3-master (1)\export\Hitoribo
cchi no Marumaruseikatsu Episode - 3 - Getting It Across by Spinning Your Wheels
[eng][English (US)].ass' track 0: Using the output module for the format 'text s
ubtitles'.
'C:\Users\Owner\Downloads\Crunchyroll-XML-Decoder-py3-master (1)\export\Hitoribo
cchi no Marumaruseikatsu Episode - 3 - Getting It Across by Spinning Your Wheels
[fre][Français (France)].ass' track 0: Using the output module for the format 't
ext subtitles'.
'C:\Users\Owner\Downloads\Crunchyroll-XML-Decoder-py3-master (1)\export\Hitoribo
cchi no Marumaruseikatsu Episode - 3 - Getting It Across by Spinning Your Wheels
[ita][Italiano].ass' track 0: Using the output module for the format 'text subti
tles'.
'C:\Users\Owner\Downloads\Crunchyroll-XML-Decoder-py3-master (1)\export\Hitoribo
cchi no Marumaruseikatsu Episode - 3 - Getting It Across by Spinning Your Wheels
[por][Português (Brasil)].ass' track 0: Using the output module for the format '
text subtitles'.
'C:\Users\Owner\Downloads\Crunchyroll-XML-Decoder-py3-master (1)\export\Hitoribo
cchi no Marumaruseikatsu Episode - 3 - Getting It Across by Spinning Your Wheels
[rus][???????].ass' track 0: Using the output module for the format 'text subtit
les'.
'C:\Users\Owner\Downloads\Crunchyroll-XML-Decoder-py3-master (1)\export\Hitoribo
cchi no Marumaruseikatsu Episode - 3 - Getting It Across by Spinning Your Wheels
[spa][Español (España)].ass' track 0: Using the output module for the format 'te
xt subtitles'.
'C:\Users\Owner\Downloads\Crunchyroll-XML-Decoder-py3-master (1)\export\Hitoribo
cchi no Marumaruseikatsu Episode - 3 - Getting It Across by Spinning Your Wheels
[spa][Español].ass' track 0: Using the output module for the format 'text subtit
les'.
The file 'C:\Users\Owner\Downloads\Crunchyroll-XML-Decoder-py3-master (1)\export
\Hitoribocchi no Marumaruseikatsu Episode - 3 - Getting It Across by Spinning Yo
ur Wheels[1080p].mkv' has been opened for writing.
'C:\Users\Owner\Downloads\Crunchyroll-XML-Decoder-py3-master (1)\export\Hitoribo
cchi no Marumaruseikatsu Episode - 3 - Getting It Across by Spinning Your Wheels
.ts' track 0: Extracted the aspect ratio information from the MPEG-4 layer 10 (A
VC) video data and set the display dimensions to 1920/1080.
Progress: 100%
The cue entries (the index) are being written...
Multiplexing took 31 seconds.
Merge process complete
Starting Final Cleanup

@alzamer2
Copy link
Collaborator Author

lol you can forget this error
its just your console cant print RUS character, from what i saw it downloaded the episode and mux the subtitle alright
check export folder to see if the downloaded episode is there or not

@darkhelmet2016
Copy link

But did notice one issue, it will overwrite files if there is an uncensored version like https://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.

@alzamer2
Copy link
Collaborator Author

ohh ok will look into it
@darkhelmet2016
can you open issue in the code so i can track it there

@darkhelmet2016
Copy link

@alzamer2
Copy link
Collaborator Author

yep

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants