Hi, Maintenance update to latest release. Changes from last version:
- add playback_url function which returns direct url to the video - new option to only report direct URL of the video file (-U) - make colored output optional (-C) - wrong url in example to the playlist in the doc - fix downloading after youtube site changes (we can remove our diff) - fix for typo in documentation - don't leave failed empty files behind (RT 79931) This version still doesn't have a way to list of supported formats of a video. Please use patch -E to remove empty files. Comments, okays? Index: Makefile =================================================================== RCS file: /cvs/ports/www/p5-WWW-YouTube-Download/Makefile,v retrieving revision 1.6 diff -u -r1.6 Makefile --- Makefile 28 Sep 2012 00:20:16 -0000 1.6 +++ Makefile 15 Oct 2012 20:45:54 -0000 @@ -3,8 +3,7 @@ COMMENT = simple YouTube interface for downloading videos MODULES = cpan -DISTNAME = WWW-YouTube-Download-0.40 -REVISION = 0 +DISTNAME = WWW-YouTube-Download-0.41 CATEGORIES = www MAINTAINER = Mikolaj Kucharski <miko...@kucharski.name> Index: distinfo =================================================================== RCS file: /cvs/ports/www/p5-WWW-YouTube-Download/distinfo,v retrieving revision 1.5 diff -u -r1.5 distinfo --- distinfo 24 Jan 2012 00:44:47 -0000 1.5 +++ distinfo 15 Oct 2012 20:45:54 -0000 @@ -1,5 +1,2 @@ -MD5 (WWW-YouTube-Download-0.40.tar.gz) = DttyVo2GhAhXhcqbfRCZGA== -RMD160 (WWW-YouTube-Download-0.40.tar.gz) = qAg0iNZeDzpKfgM+m1DslL0r4NA= -SHA1 (WWW-YouTube-Download-0.40.tar.gz) = Gz7TBWljITlmuYuu+vezUb2yh7c= -SHA256 (WWW-YouTube-Download-0.40.tar.gz) = QugU9aOA22XOXrgt+DK49GJmcy57bS/qUYX6RuIl7Kg= -SIZE (WWW-YouTube-Download-0.40.tar.gz) = 34282 +SHA256 (WWW-YouTube-Download-0.41.tar.gz) = cheRCs/ccYhSvjzrrX+CByCyCJ8K7Nyz1TbST7YpeFY= +SIZE (WWW-YouTube-Download-0.41.tar.gz) = 35480 Index: patches/patch-bin_youtube-download =================================================================== RCS file: patches/patch-bin_youtube-download diff -N patches/patch-bin_youtube-download --- patches/patch-bin_youtube-download 28 Sep 2012 00:20:16 -0000 1.1 +++ /dev/null 1 Jan 1970 00:00:00 -0000 @@ -1,15 +0,0 @@ -$OpenBSD: patch-bin_youtube-download,v 1.1 2012/09/28 00:20:16 sthen Exp $ - -- fix for proper suffix support in downloaded filename - ---- bin/youtube-download.orig Tue Jan 17 16:22:02 2012 -+++ bin/youtube-download Thu Sep 27 22:42:51 2012 -@@ -47,7 +47,7 @@ main: { - my $filename = $client->_format_filename($output, { - video_id => $meta_data->{video_id}, - title => decode_utf8($meta_data->{title}), -- suffix => $meta_data->{suffix}, -+ suffix => $fmt ? $meta_data->{video_url_map}{$fmt}{suffix} : $meta_data->{suffix}, - }); - $filename = filename_normalize($filename); - $filename = $encoder->encode($filename, sub { sprintf 'U+%x', shift }); Index: patches/patch-lib_WWW_YouTube_Download_pm =================================================================== RCS file: patches/patch-lib_WWW_YouTube_Download_pm diff -N patches/patch-lib_WWW_YouTube_Download_pm --- patches/patch-lib_WWW_YouTube_Download_pm 28 Sep 2012 00:20:16 -0000 1.3 +++ /dev/null 1 Jan 1970 00:00:00 -0000 @@ -1,17 +0,0 @@ -$OpenBSD: patch-lib_WWW_YouTube_Download_pm,v 1.3 2012/09/28 00:20:16 sthen Exp $ - -- fix downloading after youtube changes - ---- lib/WWW/YouTube/Download.pm.orig Sun Jan 22 07:54:47 2012 -+++ lib/WWW/YouTube/Download.pm Thu Sep 27 22:45:08 2012 -@@ -222,7 +222,9 @@ sub _parse_stream_map { - my $uri = URI->new; - $uri->query($stuff); - my $query = +{ $uri->query_form }; -- $fmt_url_map->{$query->{itag}} = $query->{url}; -+ my $sig = $query->{sig}; -+ my $url = $query->{url}; -+ $fmt_url_map->{$query->{itag}} = $url.'&signature='.$sig; - } - - return $fmt_url_map; -- best regards q#