beyonthink / get-flash-videos

Automatically exported from code.google.com/p/get-flash-videos
1 stars 1 forks source link

Youtube UTF 8 problems - Error: Can't escape \x{0627}, try uri_escape_utf8() #416

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I tried the following command :
get_flash_videos -d "http://www.youtube.com/watch?v=5cDKdVmUJdA"

The full output is :

No plugins installed
Downloading http://www.youtube.com/watch?v=5cDKdVmUJdA
-> GET http://www.youtube.com/watch?v=5cDKdVmUJdA
<- 200 text/html; charset=utf-8 (35459): UTF8 on, non-ASCII, 35459 characters 
36564 bytes
Trying to open plugin ~/.get_flash_videos/plugins/Www.pm
Trying to open plugin ~/.get_flash_videos/plugins/Youtube.pm
Using method 'youtube' for http://www.youtube.com/watch?v=5cDKdVmUJdA
Error: Can't escape \x{0627}, try uri_escape_utf8() instead at 
/usr/lib64/perl5/vendor_perl/5.12.4/FlashVideo/Site/Youtube.pm line 393

Couldn't extract Flash movie URL. This site may need specific support adding,
or fixing.

Please confirm the site is using Flash video and if you have Flash available
check that the URL really works(!).

Check for updates by running: /usr/bin/get_flash_videos --update

If the latest version does not support this please open a bug (or
contribute a patch!) at http://code.google.com/p/get-flash-videos/
make sure you include the output with --debug enabled.
Couldn't download any videos.

I suspect that the problem is related of having the Youtube page with arabic 
characters.

Original issue reported on code.google.com by lw.demos...@googlemail.com on 19 Aug 2012 at 10:10

GoogleCodeExporter commented 8 years ago
Note, I have replace the three usi_escape at line 393 by the uri_escape_utf8() 
functions, it worked fine.

Crap ... this has been reported also here : 
http://code.google.com/p/get-flash-videos/issues/detail?id=414

Original comment by lw.demos...@googlemail.com on 19 Aug 2012 at 10:21

GoogleCodeExporter commented 8 years ago

Original comment by zakflash...@gmail.com on 3 Oct 2012 at 7:45