edelmoral / get-flash-videos

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

can't download youtube videos which have arabic characters in their titles #414

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.try to download video that has arabic title 
ex.http://www.youtube.com/watch?v=jr3uBjw4DM8&feature=g-sptl&cid=www.youtube.com
/ramadan
2.works fine with any other videos

What is the expected output? What do you see instead?
it should work normally, i downloaded youtube video normally

here's the command on ubuntu:
get_flash_videos --debug 
'http://www.youtube.com/watch?v=jr3uBjw4DM8&feature=g-sptl&cid=www.youtube.com/r
amadan'

here's the output:
No plugins installed
Downloading 
http://www.youtube.com/watch?v=jr3uBjw4DM8&feature=g-sptl&cid=www.youtube.com/ra
madan
-> GET 
http://www.youtube.com/watch?v=jr3uBjw4DM8&feature=g-sptl&cid=www.youtube.com/ra
madan
<- 200 text/html; charset=utf-8 (36475): UTF8 on, non-ASCII, 36475 characters 
37781 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=jr3uBjw4DM8&feature=g-sptl&cid=www.youtube.com/ra
madan
Error: Can't escape \x{0645}, try uri_escape_utf8() instead at 
/usr/share/perl5/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 want to emphasize 'Error: Can't escape \x{0645}'

thanks for this great tool, keep up the good work

Original issue reported on code.google.com by DrAhmedJ...@gmail.com on 15 Aug 2012 at 12:05

GoogleCodeExporter commented 8 years ago
Issue 416 has been merged into this issue.

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

GoogleCodeExporter commented 8 years ago
Same for Japanese characters.  Was working fine for a long time too!

$ get_flash_videos http://www.youtube.com/watch?v=ATnEZbW62vM
Using method 'youtube' for http://www.youtube.com/watch?v=ATnEZbW62vM
Downloading http://www.youtube.com/watch?v=ATnEZbW62vM
Error: Can't escape \x{3082}, try uri_escape_utf8() instead at 
/usr/local/share/perl/5.14.2/FlashVideo/Site/Youtube.pm line 406

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/local/bin/get_flash_videos --update

If the latest version does not support this please open a bug
at http://code.google.com/p/get-flash-videos/ making sure you include
the output with --debug enabled. Alternatively, fix it yourself and send us
a pull request on Github: https://github.com/monsieurvideo/get-flash-videos
Couldn't download any videos.

Original comment by chese...@gmail.com on 4 Oct 2012 at 6:57