Bug#655667: get-flash-videos: fails on URLs containing UTF-8 characters

Marc Dequènes (Duck) duck at duckcorp.org
Fri Jan 13 01:36:42 UTC 2012


Package: get-flash-videos
Version: 1.25~git2011.09.26-2
Tags: patch


Coin,

For historical purpose i was trying to archive the following video but  
it failed:
$ get_flash_videos  
"http://www.youtube.com/watch?v=kL5DDSglM_s&feature=related"
Downloading http://www.youtube.com/watch?v=kL5DDSglM_s&feature=related
Using method 'youtube' for  
http://www.youtube.com/watch?v=kL5DDSglM_s&feature=related
Error: Can't escape \x{304D}, 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.

I tested replacing the three uri_escape() calls on this page by  
uri_escape_utf8(), as suggested in the error message, and it worked  
like a charm. Maybe we could had such a nice resolution suggestion  
feature to all packages and for once get RC bugs down to 0 ;-).

Attached is a proper patch for this issue.

Regards.

-- 
Marc Dequènes (Duck)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: get-flash-videos_utf-8_fix.patch
Type: text/x-patch
Size: 557 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-perl-maintainers/attachments/20120113/cf7b53ed/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: PGP Digital Signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-perl-maintainers/attachments/20120113/cf7b53ed/attachment.pgp>


More information about the pkg-perl-maintainers mailing list