giavoni / get-flash-videos

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

Some Youtube videos fail due to "utf8" problem #328

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
- Try to download video http://www.youtube.com/watch?v=iFkVk7Sp28I

What is the expected output? 
video downloads

What do you see instead?
"""
Downloading http://www.youtube.com/watch?v=iFkVk7Sp28I
Using method 'youtube' for http://www.youtube.com/watch?v=iFkVk7Sp28I
Error: Can't escape \x{25BA}, try uri_escape_utf8() instead at 
C:\...\lib/FlashVideo/Site/Youtube.pm line 396
[more text clipped for brevity]
"""

What version of the product are you using?
- Git commit a441286a9b4fe375b0baae15f1c194a22bb78cda

On what operating system?
- Win7 x64

Please provide any additional information below.
Changing all three "uri_escape()" calls on that line with "uri_escape_utf8()" 
does indeed fix the problem. I had to do it with an earlier commit version 
(never had problems after doing it), I just forgot to do it again after 
updating.

Original issue reported on code.google.com by Night...@gmail.com on 10 Nov 2011 at 8:34

GoogleCodeExporter commented 9 years ago
Me too.
I just needed to uri_escape_utf8() the last arg ($t).

http://www.youtube.com/watch?v=fbbGf7Uubes
Version 1.24 on Ubuntu.

Original comment by ttakah@gmail.com on 13 Dec 2011 at 8:51

GoogleCodeExporter commented 9 years ago
I had to add URI::Escape:: along with the escape routine for it to work.

Original comment by megac...@gmail.com on 12 Jan 2012 at 7:17