einstein95 / crunchy-xml-decoder

GNU General Public License v2.0
35 stars 14 forks source link

TypeError: ord() expected a character, but string of length 7 found #26

Closed ghost closed 8 years ago

ghost commented 8 years ago

Hello, i've downloaded the lastest update (6 hour ago) from Github and got an error. I was trying to download the subtitle of this (http://www.crunchyroll.com/himouto-umaru-chan/episode-8-umaru-and-christmas-and-new-years-682815). I've Python 2.7.9 (64 bits), Python 2.7 lxml-3.3.5, Python 2.7 pycrypto-2.6.


CrunchyRoll Downloader Toolkit DX v0.98

This script downloads just the subtitles, for purposes nefarious or otherwise.

Please Enter CrunchyRoll Video URL http://www.crunchyroll.com/himouto-umaru-chan/episode-8-umaru-and-christmas-and-new-years-682815 Extracting subtitles from http://www.crunchyroll.com/himouto-umaru-chan/episode-8-umaru-and-christmas-and-new-years-682815 Booting up... D:\Users\Gonner\Downloads\crunchy-xml-decoder-master\crunchy-xml-decoder\decode.py:71: RuntimeWarning: Argument <type 'list'> is not an unicode object. Passing an encoded string will likely have unexpected results. sub_id = re.findall("id='([0-9]+)' .+? title='.+?" + re.escape(unidecode(lang)) + "'", xmllist)[0] Traceback (most recent call last): File "D:\Users\Gonner\Downloads\crunchy-xml-decoder-master\crunchy-xml-decoder\decode.py", line 71, in sub_id = re.findall("id='([0-9]+)' .+? title='.+?" + re.escape(unidecode(lang)) + "'", xmllist)[0] File "D:\Users\Gonner\Downloads\crunchy-xml-decoder-master\crunchy-xml-decoder\unidecodeinit.py", line 37, in unidecode codepoint = ord(char) TypeError: ord() expected a character, but string of length 7 found

** Job completed successfully *

Appuyez sur une touche pour continuer...


Best regards.

ghost commented 8 years ago

Thank you, now it says me "The video's subtitles cannot be found, or are region-locked". I tried the same link as before.

einstein95 commented 8 years ago

Just added a new .bat file called "_error_test.bat". Please run it with the URL of the video you are having problems with and report back with the output.

ghost commented 8 years ago

Thank you, i can now download videos but the problem still appears but only on the lastest videos. I didn't found the bat file called "_error_test.bat". I think it's because i don't have premium account.

einstein95 commented 8 years ago

If the video is premium only, probably yes.

On Sat, 5 Sep 2015 4:51 am Gonner notifications@github.com wrote:

I didn't found the bat file called "_error_test.bat". But the problem appears only on the lastest videos. I think it's because i don't have premium account.

— Reply to this email directly or view it on GitHub https://github.com/einstein95/crunchy-xml-decoder/issues/26#issuecomment-137789159 .

ghost commented 8 years ago

Ok, then thank you, i do not have problem anymore :)