r70663 - in /trunk/libwww-youtube-download-perl: Changes MANIFEST META.yml debian/changelog debian/compat debian/control debian/copyright debian/libwww-youtube-download-perl.docs lib/WWW/YouTube/Download.pm t/01_data.txt t/01_simple.t t/private/
jawnsy-guest at users.alioth.debian.org
jawnsy-guest at users.alioth.debian.org
Sun Mar 6 14:31:23 UTC 2011
Author: jawnsy-guest
Date: Sun Mar 6 14:31:00 2011
New Revision: 70663
URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=70663
Log:
NOTE: we need to ask upstream for a copyright statement
* New upstream release
* No longer install README (no useful information here)
* Bump debhelper compat to 8
* Rewrite control description
* Add myself to Uploaders and Copyright
* Refresh copyright information
Added:
trunk/libwww-youtube-download-perl/t/private/
- copied from r70656, branches/upstream/libwww-youtube-download-perl/current/t/private/
Removed:
trunk/libwww-youtube-download-perl/debian/libwww-youtube-download-perl.docs
Modified:
trunk/libwww-youtube-download-perl/Changes
trunk/libwww-youtube-download-perl/MANIFEST
trunk/libwww-youtube-download-perl/META.yml
trunk/libwww-youtube-download-perl/debian/changelog
trunk/libwww-youtube-download-perl/debian/compat
trunk/libwww-youtube-download-perl/debian/control
trunk/libwww-youtube-download-perl/debian/copyright
trunk/libwww-youtube-download-perl/lib/WWW/YouTube/Download.pm
trunk/libwww-youtube-download-perl/t/01_data.txt
trunk/libwww-youtube-download-perl/t/01_simple.t
Modified: trunk/libwww-youtube-download-perl/Changes
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libwww-youtube-download-perl/Changes?rev=70663&op=diff
==============================================================================
--- trunk/libwww-youtube-download-perl/Changes (original)
+++ trunk/libwww-youtube-download-perl/Changes Sun Mar 6 14:31:00 2011
@@ -1,4 +1,10 @@
Revision history for Perl extension WWW::YouTube::Download
+
+0.24 Fri Mar 4 01:45:20 2011
+ - fixed could not fetch json data problem (akiym++)
+
+0.23 Tue Feb 22 00:00:22 2011
+ - supported any video urls (mikolaj++)
0.22 Wed Jan 5 00:17:54 2011
- Fixed a problem that can not download videos there. (reported by Octavian)
Modified: trunk/libwww-youtube-download-perl/MANIFEST
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libwww-youtube-download-perl/MANIFEST?rev=70663&op=diff
==============================================================================
--- trunk/libwww-youtube-download-perl/MANIFEST (original)
+++ trunk/libwww-youtube-download-perl/MANIFEST Sun Mar 6 14:31:00 2011
@@ -22,6 +22,7 @@
t/01_data.txt
t/01_simple.t
t/internal/video_id.t
+t/private/video_id.t
xt/01_podspell.t
xt/02_perlcritic.t
xt/03_pod.t
Modified: trunk/libwww-youtube-download-perl/META.yml
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libwww-youtube-download-perl/META.yml?rev=70663&op=diff
==============================================================================
--- trunk/libwww-youtube-download-perl/META.yml (original)
+++ trunk/libwww-youtube-download-perl/META.yml Sun Mar 6 14:31:00 2011
@@ -27,4 +27,4 @@
resources:
license: http://dev.perl.org/licenses/
repository: git://github.com/xaicron/p5-www-youtube-download
-version: 0.22
+version: 0.24
Modified: trunk/libwww-youtube-download-perl/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libwww-youtube-download-perl/debian/changelog?rev=70663&op=diff
==============================================================================
--- trunk/libwww-youtube-download-perl/debian/changelog (original)
+++ trunk/libwww-youtube-download-perl/debian/changelog Sun Mar 6 14:31:00 2011
@@ -1,3 +1,16 @@
+libwww-youtube-download-perl (0.24-1) UNRELEASED; urgency=low
+
+ NOTE: we need to ask upstream for a copyright statement
+
+ * New upstream release
+ * No longer install README (no useful information here)
+ * Bump debhelper compat to 8
+ * Rewrite control description
+ * Add myself to Uploaders and Copyright
+ * Refresh copyright information
+
+ -- Jonathan Yu <jawnsy at cpan.org> Sun, 06 Mar 2011 09:52:35 -0500
+
libwww-youtube-download-perl (0.22-1) unstable; urgency=low
* Initial Release. (Closes: #612865)
Modified: trunk/libwww-youtube-download-perl/debian/compat
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libwww-youtube-download-perl/debian/compat?rev=70663&op=diff
==============================================================================
--- trunk/libwww-youtube-download-perl/debian/compat (original)
+++ trunk/libwww-youtube-download-perl/debian/compat Sun Mar 6 14:31:00 2011
@@ -1,1 +1,1 @@
-7
+8
Modified: trunk/libwww-youtube-download-perl/debian/control
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libwww-youtube-download-perl/debian/control?rev=70663&op=diff
==============================================================================
--- trunk/libwww-youtube-download-perl/debian/control (original)
+++ trunk/libwww-youtube-download-perl/debian/control Sun Mar 6 14:31:00 2011
@@ -1,14 +1,15 @@
Source: libwww-youtube-download-perl
Section: perl
Priority: optional
-Build-Depends: debhelper (>= 7)
-Build-Depends-Indep: libhtml-parser-perl,
+Build-Depends: debhelper (>= 8)
+Build-Depends-Indep: perl,
+ libhtml-parser-perl,
libjson-perl,
liburi-perl,
- libwww-perl,
- perl (>= 5.10.0)
+ libwww-perl
Maintainer: Debian Perl Group <pkg-perl-maintainers at lists.alioth.debian.org>
-Uploaders: TANIGUCHI Takaki <takaki at debian.org>
+Uploaders: TANIGUCHI Takaki <takaki at debian.org>,
+ Jonathan Yu <jawnsy at cpan.org>
Standards-Version: 3.9.1
Homepage: http://search.cpan.org/dist/WWW-YouTube-Download/
Vcs-Svn: svn://svn.debian.org/pkg-perl/trunk/libwww-youtube-download-perl/
@@ -20,8 +21,9 @@
libhtml-parser-perl,
libjson-perl,
liburi-perl,
- libwww-perl,
- perl
-Description: Very simply YouTube video download interface.
- WWW::YouTube::Download is a download video from YouTube.
-
+ libwww-perl
+Description: module for downloading video from YouTube
+ WWW::YouTube::Download is a Perl module that provides a basic interface to
+ YouTube's video sharing service. It enables developers to programmatically
+ retrieve information (titles and format information), and more importantly,
+ to download arbitrary videos.
Modified: trunk/libwww-youtube-download-perl/debian/copyright
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libwww-youtube-download-perl/debian/copyright?rev=70663&op=diff
==============================================================================
--- trunk/libwww-youtube-download-perl/debian/copyright (original)
+++ trunk/libwww-youtube-download-perl/debian/copyright Sun Mar 6 14:31:00 2011
@@ -1,14 +1,25 @@
Format-Specification: http://svn.debian.org/wsvn/dep/web/deps/dep5.mdwn?op=file&rev=135
-Maintainer: Yuji Shimada
+Maintainer: Yuji Shimada <xaicron at cpan.org>
Source: http://search.cpan.org/dist/WWW-YouTube-Download/
Name: WWW-YouTube-Download
Files: *
-Copyright: Yuji Shimada
+Copyright: Yuji Shimada <xaicron at cpan.org>
+License: Artistic or GPL-1+
+
+Files: inc/Module/*
+Copyright: 2002-2010, Adam Kennedy <adamk at cpan.org>
+ 2002-2010, Audrey Tang <autrijus at autrijus.org>
+ 2002-2010, Brian Ingerson <ingy at cpan.org>
+License: Artistic or GPL-1+
+
+Files: inc/Test/More.pm
+Copyright: 2001-2008, Michael G Schwern <schwern at pobox.com>
License: Artistic or GPL-1+
Files: debian/*
Copyright: 2011, TANIGUCHI Takaki <takaki at debian.org>
+ 2011, Jonathan Yu <jawnsy at cpan.org>
License: Artistic or GPL-1+
License: Artistic
Modified: trunk/libwww-youtube-download-perl/lib/WWW/YouTube/Download.pm
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libwww-youtube-download-perl/lib/WWW/YouTube/Download.pm?rev=70663&op=diff
==============================================================================
--- trunk/libwww-youtube-download-perl/lib/WWW/YouTube/Download.pm (original)
+++ trunk/libwww-youtube-download-perl/lib/WWW/YouTube/Download.pm Sun Mar 6 14:31:00 2011
@@ -4,7 +4,7 @@
use warnings;
use 5.008001;
-our $VERSION = '0.22';
+our $VERSION = '0.24';
use Carp ();
use URI ();
@@ -167,7 +167,7 @@
my $data;
for (split "\n", $content) {
- if ($_ && /videoplayback/ && /signature/ && !/HTML/) {
+ if ($_ && /var\s+swfConfig/ && /videoplayback/ && /signature/ && !/HTML/) {
my ($json) = $_ =~ /^[^{]+(.*)[^}]+$/;
$data = JSON->new->utf8(1)->decode($json);
last;
@@ -216,7 +216,18 @@
sub _video_id {
my $stuff = shift;
- return $stuff =~ /watch\?v=([^&]+)/ ? $1 : $stuff;
+ if ($stuff =~ m{/watch\?.*?v=([^&]+)}) {
+ return $1;
+ }
+ elsif ($stuff =~ m{/(?:v|embed)/([^&]+)}) {
+ return $1;
+ }
+ elsif ($stuff =~ m{#p/(?:u|search)/\d+/([^&?/]+)}) {
+ return $1;
+ }
+ else {
+ return $stuff;
+ }
}
1;
Modified: trunk/libwww-youtube-download-perl/t/01_data.txt
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libwww-youtube-download-perl/t/01_data.txt?rev=70663&op=diff
==============================================================================
--- trunk/libwww-youtube-download-perl/t/01_data.txt (original)
+++ trunk/libwww-youtube-download-perl/t/01_data.txt Sun Mar 6 14:31:00 2011
@@ -1,6 +1,6 @@
<title>
YouTube
- - ãé«é³è³ªãä¾µç¥!ã¤ã«å¨OP ãä¾µç¥ãã¹ã¹ã¡âãæè©ä»ã&ç»åVer.
+ - ã®ææ¸ãã§éæ³å°å¥³ã¾ã©ãâãã®ã«ï¼¯ï¼°.mp4
</title>
- var swfConfig = {"url": "http:\/\/s.ytimg.com\/yt\/swfbin\/watch_as3-vflQlVVCK.swf", "min_version": "8.0.0", "args": {"rv.2.thumbnailUrl": "http:\/\/i1.ytimg.com\/vi\/dyubmQXk15A\/default.jpg", "rv.7.length_seconds": 104, "rv.0.url": "http:\/\/www.youtube.com\/watch?v=DNfMMT0EMx8", "rv.0.view_count": 6327, "enablecsi": "1", "rv.2.title": "[HD] Shinryaku! Ika Musume 06 [2\/2]", "rv.4.rating": "5.0", "rv.3.view_count": 34039, "rv.0.length_seconds": 272, "rv.4.thumbnailUrl": "http:\/\/i2.ytimg.com\/vi\/q_pjbHZReQs\/default.jpg", "fmt_url_map": "22|http:\/\/v5.lscache8.c.youtube.com\/videoplayback?ip=119.0.0.0&sparams=id%2Cexpire%2Cip%2Cipbits%2Citag%2Cratebypass&fexp=906322%2C907048&itag=22&ipbits=8&sver=3&ratebypass=yes&expire=1292364000&key=yt1&signature=188170E1FAC8B18D7E88B133DC49C02AD6187825.84C91F49CF2E39ED76849BCF0741F228AA623551&id=472e91ba99b792a3,35|http:\/\/v20.lscache8.c.youtube.com\/videoplayback?ip=119.0.0.0&sparams=id%2Cexpire%2Cip%2Cipbits%2Citag%2Calgorithm%2Cburst%2Cfactor&fexp=906322%2C907048&algorithm=throttle-factor&itag=35&ipbits=8&burst=40&sver=3&expire=1292364000&key=yt1&signature=4F6ACD6242498CFCF188AE9DDAA7F017573A9EF1.7EBC6022BF96AB1341F172C4663ED34CAAD6F57C&factor=1.25&id=472e91ba99b792a3,34|http:\/\/v10.lscache2.c.youtube.com\/videoplayback?ip=119.0.0.0&sparams=id%2Cexpire%2Cip%2Cipbits%2Citag%2Calgorithm%2Cburst%2Cfactor&fexp=906322%2C907048&algorithm=throttle-factor&itag=34&ipbits=8&burst=40&sver=3&expire=1292364000&key=yt1&signature=0552BEC0316BF3FB088F55C6B0BEF318CE0A7E3F.6844CB6F5E0B9CA10520F870B40E34EC39BDA1DB&factor=1.25&id=472e91ba99b792a3,18|http:\/\/v3.lscache3.c.youtube.com\/videoplayback?ip=119.0.0.0&sparams=id%2Cexpire%2Cip%2Cipbits%2Citag%2Calgorithm%2Cburst%2Cfactor&fexp=906322%2C907048&algorithm=throttle-factor&itag=18&ipbits=8&burst=40&sver=3&expire=1292364000&key=yt1&signature=B43BDC27CD9A3DA0BA665E58F9F070D5A1391E08.550D5AEACF834E86E9BB88566EF523FC671B9B84&factor=1.25&id=472e91ba99b792a3,5|http:\/\/v3.lscache1.c.youtube.com\/videoplayback?ip=119.0.0.0&sparams=id%2Cexpire%2Cip%2Cipbits%2Citag%2Calgorithm%2Cburst%2Cfactor&fexp=906322%2C907048&algorithm=throttle-factor&itag=5&ipbits=8&burst=40&sver=3&expire=1292364000&key=yt1&signature=328896AB78A29120F0015EC678BD7A5C5B710B98.4F3095A933ED887375887DBA4722C259CC724A31&factor=1.25&id=472e91ba99b792a3", "csi_page_type": "watch", "keywords": "\u00e4\u00be\u00b5\u00e7\u0095\u00a5!\u00e3\u0082\u00a4\u00e3\u0082\u00ab\u00e5\u00a8\u0098", "cr": "JP", "rv.1.url": "http:\/\/www.youtube.com\/watch?v=lQvnclsDtcc", "rv.6.thumbnailUrl": "http:\/\/i3.ytimg.com\/vi\/Fhl8vbwaPPg\/default.jpg", "rv.3.rating": "5.0", "fmt_list": "22\/1280x720\/9\/0\/115,35\/854x480\/9\/0\/115,34\/640x360\/9\/0\/115,18\/640x360\/9\/0\/115,5\/320x240\/7\/0\/0", "rv.7.id": "ZDPBiNUHmYs", "rv.0.rating": "5.0", "rv.6.author": "kiddo0992", "rv.3.title": "\u00e4\u00be\u00b5\u00e7\u0095\u00a5!\u00e3\u0082\u00a4\u00e3\u0082\u00ab\u00e5\u00a8\u0098 OP \u00e3\u0080\u008c\u00e4\u00be\u00b5\u00e7\u0095\u00a5\u00e3\u0083\u008e\u00e3\u0082\u00b9\u00e3\u0082\u00b9\u00e3\u0083\u00a1\u00e2\u0098\u0086\u00e3\u0080\u008d", "rv.5.id": "MNGM4w2GFCE", "rv.0.id": "DNfMMT0EMx8", "rv.5.url": "http:\/\/www.youtube.com\/watch?v=MNGM4w2GFCE", "rv.6.length_seconds": 266, "timestamp": 1292341983, "rv.0.author": "mian1019", "rv.3.thumbnailUrl": "http:\/\/i2.ytimg.com\/vi\/AFMoZbaP_X0\/default.jpg", "rv.2.author": "yuixazu", "rv.6.url": "http:\/\/www.youtube.com\/watch?v=Fhl8vbwaPPg", "fmt_map": "22\/1280x720\/9\/0\/115,35\/854x480\/9\/0\/115,34\/640x360\/9\/0\/115,18\/640x360\/9\/0\/115,5\/320x240\/7\/0\/0", "showpopout": 1, "hl": "ja_JP", "endscreen_module": "http:\/\/s.ytimg.com\/yt\/swfbin\/endscreen-vflh7QmOT.swf", "rv.5.length_seconds": 468, "rv.0.thumbnailUrl": "http:\/\/i1.ytimg.com\/vi\/DNfMMT0EMx8\/default.jpg", "rv.7.author": "hanazawa71", "leanback_module": "http:\/\/s.ytimg.com\/yt\/swfbin\/leanback_module-vflW8bmAe.swf", "rv.1.length_seconds": 251, "rv.3.id": "AFMoZbaP_X0", "rv.2.id": "dyubmQXk15A", "rv.2.length_seconds": 685, "t": "vjVQa1PpcFPt0zVsbWSRWmjybkfmGmkyxyz37jE4-iU=", "rv.6.id": "Fhl8vbwaPPg", "vq": "auto", "rv.6.view_count": 701, "rv.3.author": "zsetunax", "rv.4.id": "q_pjbHZReQs", "fexp": "906322,907048", "rv.4.author": "BLACKDIA1984", "rv.7.thumbnailUrl": "http:\/\/i3.ytimg.com\/vi\/ZDPBiNUHmYs\/default.jpg", "allow_embed": 1, "fmt_stream_map": "22|http:\/\/v5.lscache8.c.youtube.com\/videoplayback?ip=119.0.0.0&sparams=id%2Cexpire%2Cip%2Cipbits%2Citag%2Cratebypass&fexp=906322%2C907048&itag=22&ipbits=8&sver=3&ratebypass=yes&expire=1292364000&key=yt1&signature=188170E1FAC8B18D7E88B133DC49C02AD6187825.84C91F49CF2E39ED76849BCF0741F228AA623551&id=472e91ba99b792a3||tc.v5.cache8.c.youtube.com,35|http:\/\/v20.lscache8.c.youtube.com\/videoplayback?ip=119.0.0.0&sparams=id%2Cexpire%2Cip%2Cipbits%2Citag%2Calgorithm%2Cburst%2Cfactor&fexp=906322%2C907048&algorithm=throttle-factor&itag=35&ipbits=8&burst=40&sver=3&expire=1292364000&key=yt1&signature=4F6ACD6242498CFCF188AE9DDAA7F017573A9EF1.7EBC6022BF96AB1341F172C4663ED34CAAD6F57C&factor=1.25&id=472e91ba99b792a3||tc.v20.cache8.c.youtube.com,34|http:\/\/v10.lscache2.c.youtube.com\/videoplayback?ip=119.0.0.0&sparams=id%2Cexpire%2Cip%2Cipbits%2Citag%2Calgorithm%2Cburst%2Cfactor&fexp=906322%2C907048&algorithm=throttle-factor&itag=34&ipbits=8&burst=40&sver=3&expire=1292364000&key=yt1&signature=0552BEC0316BF3FB088F55C6B0BEF318CE0A7E3F.6844CB6F5E0B9CA10520F870B40E34EC39BDA1DB&factor=1.25&id=472e91ba99b792a3||tc.v10.cache2.c.youtube.com,18|http:\/\/v3.lscache3.c.youtube.com\/videoplayback?ip=119.0.0.0&sparams=id%2Cexpire%2Cip%2Cipbits%2Citag%2Calgorithm%2Cburst%2Cfactor&fexp=906322%2C907048&algorithm=throttle-factor&itag=18&ipbits=8&burst=40&sver=3&expire=1292364000&key=yt1&signature=B43BDC27CD9A3DA0BA665E58F9F070D5A1391E08.550D5AEACF834E86E9BB88566EF523FC671B9B84&factor=1.25&id=472e91ba99b792a3||tc.v3.cache3.c.youtube.com,5|http:\/\/v3.lscache1.c.youtube.com\/videoplayback?ip=119.0.0.0&sparams=id%2Cexpire%2Cip%2Cipbits%2Citag%2Calgorithm%2Cburst%2Cfactor&fexp=906322%2C907048&algorithm=throttle-factor&itag=5&ipbits=8&burst=40&sver=3&expire=1292364000&key=yt1&signature=328896AB78A29120F0015EC678BD7A5C5B710B98.4F3095A933ED887375887DBA4722C259CC724A31&factor=1.25&id=472e91ba99b792a3||tc.v3.cache1.c.youtube.com", "rv.2.rating": "5.0", "rv.7.title": "[StepMania] \u00e4\u00be\u00b5\u00e7\u0095\u00a5\u00e3\u0083\u008e\u00e3\u0082\u00b9\u00e3\u0082\u00b9\u00e3\u0083\u00a1\u00e2\u0098\u0086 \/ \u00e4\u00be\u00b5\u00e7\u0095\u00a5\u00ef\u00bc\u0081\u00e3\u0082\u00a4\u00e3\u0082\u00ab\u00e5\u00a8\u0098 OP", "rv.1.id": "lQvnclsDtcc", "rv.6.title": "\u00e4\u00be\u00b5\u00e7\u0095\u00a5!\u00e3\u0082\u00a4\u00e3\u0082\u00ab\u00e5\u00a8\u0098\u00e3\u0080\u0080OP \u00e4\u00be\u00b5\u00e7\u0095\u00a5\u00e3\u0083\u008e\u00e3\u0082\u00b9\u00e3\u0082\u00b9\u00e3\u0083\u00a1\u00e2\u0098\u0086", "rv.4.length_seconds": 275, "rv.7.view_count": 9245, "rv.5.view_count": 20984, "length_seconds": 266, "enablejsapi": 1, "video_id": "Ry6Rupm3kqM", "plid": "AASXYNDf3YbLq6XU", "tmi": "1", "rv.5.rating": "5.0", "rv.4.url": "http:\/\/www.youtube.com\/watch?v=q_pjbHZReQs", "rv.1.author": "ChocolateLink", "rv.1.rating": "4.69230769231", "rv.4.title": "\u00e4\u00be\u00b5\u00e7\u0095\u00a5\u00e3\u0083\u008e\u00e3\u0082\u00b9\u00e3\u0082\u00b9\u00e3\u0083\u00a1\u00e2\u0098\u0086", "rv.5.thumbnailUrl": "http:\/\/i2.ytimg.com\/vi\/MNGM4w2GFCE\/default.jpg", "watermark": "http:\/\/s.ytimg.com\/yt\/swf\/logo-vfl_bP6ud.swf,http:\/\/s.ytimg.com\/yt\/swf\/hdlogo-vfloR6wva.swf", "rv.0.title": "\u00e4\u00be\u00b5\u00e7\u0095\u00a5\u00ef\u00bc\u0081\u00e3\u0082\u00a4\u00e3\u0082\u00ab\u00e5\u00a8\u0098OP\u00e3\u0080\u0080\u00e3\u0080\u0090\u00e4\u00be\u00b5\u00e7\u0095\u00a5\u00e3\u0083\u008e\u00e3\u0082\u00b9\u00e3\u0082\u00b9\u00e3\u0083\u00a1\u00e2\u0098\u0086\u00e3\u0080\u0091\u00e3\u0080\u0080full", "rv.7.rating": "5.0", "rv.3.url": "http:\/\/www.youtube.com\/watch?v=AFMoZbaP_X0", "rv.2.url": "http:\/\/www.youtube.com\/watch?v=dyubmQXk15A", "rv.7.url": "http:\/\/www.youtube.com\/watch?v=ZDPBiNUHmYs", "rv.2.view_count": 53153, "rv.4.view_count": 3558, "rv.1.view_count": 9579, "rv.5.title": "\u00e3\u0080\u0090\u00e3\u0082\u00a2\u00e3\u0083\u008b\u00e3\u0082\u00bd\u00e3\u0083\u00b3\u00e3\u0083\u00a9\u00e3\u0083\u00b3\u00e3\u0082\u00ad\u00e3\u0083\u00b3\u00e3\u0082\u00b0\u00e3\u0080\u0091\u00e3\u0080\u00802010\u00e5\u00b9\u00b4\u00e7\u00a7\u008b\u00e3\u0082\u00a2\u00e3\u0083\u008b\u00e3\u0083\u00a1\u00e7\u00a5\u009e\u00e6\u009b\u00b2\u00ef\u00bc\u0088OP\u00ef\u00bc\u0089 \u00e3\u0080\u0090\u00e9\u00ab\u0098\u00e9\u009f\u00b3\u00e8\u00b3\u00aa\u00e3\u0080\u0091", "rv.6.rating": "5.0", "sk": "YA0uIY9G_6GHxlDiO4asLx0m8h-KiwxFC", "rv.1.title": "\u00e4\u00be\u00b5\u00e7\u0095\u00a5! \u00e3\u0082\u00a4\u00e3\u0082\u00ab\u00e5\u00a8\u0098OP \u00e3\u0080\u008c\u00e4\u00be\u00b5\u00e7\u0095\u00a5\u00e3\u0081\u00ae\u00e3\u0082\u00b9\u00e3\u0082\u00b9\u00e3\u0083\u00a1\u00e3\u0080\u008d \u00e5\u00ae\u009f\u00e5\u0086\u0099\u00e7\u0089\u0088\u00e3\u0080\u0080ULTRA PRISM PV", "rv.1.thumbnailUrl": "http:\/\/i1.ytimg.com\/vi\/lQvnclsDtcc\/default.jpg", "rv.3.length_seconds": 91, "rv.5.author": "Eilago0809"}, "url_v9as2": "http:\/\/s.ytimg.com\/yt\/swfbin\/watch-vfly3irI4.swf", "params": {"allowscriptaccess": "always", "allowfullscreen": "true", "bgcolor": "#000000"}, "attrs": {"width": "640", "id": "movie_player", "height": "385"}, "url_v8": "http:\/\/s.ytimg.com\/yt\/swfbin\/watch_v8-vfl90ER0T.swf"};
+ var swfConfig = {"url": "http:\/\/s.ytimg.com\/yt\/swfbin\/watch_as3-vfl4DpYg6.swf", "min_version": "8.0.0", "args": {"rv.2.thumbnailUrl": "http:\/\/i2.ytimg.com\/vi\/Ixazj9bj478\/default.jpg", "rv.7.length_seconds": 90, "rv.0.url": "http:\/\/www.youtube.com\/watch?v=jwY_c2vxNYw", "rv.0.view_count": 2117, "enablecsi": "1", "rv.2.title": "\u9b54\u6cd5\u5c11\u5973\u5c0f\u5713OP", "rv.4.rating": "", "rv.3.view_count": 35038, "is_doubleclick_tracked": "1", "rv.4.thumbnailUrl": "http:\/\/i1.ytimg.com\/vi\/tC7BqMv-9JA\/default.jpg", "fmt_url_map": "34|http:\/\/v9.lscache1.c.youtube.com\/videoplayback?sparams=id%2Cexpire%2Cip%2Cipbits%2Citag%2Calgorithm%2Cburst%2Cfactor%2Coc%3AU0dYTlFUUV9FSkNNOF9JTlVD&algorithm=throttle-factor&itag=34&ipbits=0&burst=40&sver=3&signature=4D216F61C63A1B9DDDD3A837F3EFFCBCDA06297B.ABC59F7AAB4A47CC938CB6833A014701666234CA&expire=1299193200&key=yt1&ip=0.0.0.0&factor=1.25&id=48334a2162ac9611,18|http:\/\/v21.lscache4.c.youtube.com\/videoplayback?sparams=id%2Cexpire%2Cip%2Cipbits%2Citag%2Calgorithm%2Cburst%2Cfactor%2Coc%3AU0dYTlFUUV9FSkNNOF9JTlVD&algorithm=throttle-factor&itag=18&ipbits=0&burst=40&sver=3&signature=B38170914BA6288E84041B3BFAE6E4ED67F7E688.A5810CB3FC25AD29129D3006F907ECFB6D445FCA&expire=1299193200&key=yt1&ip=0.0.0.0&factor=1.25&id=48334a2162ac9611,5|http:\/\/v7.lscache8.c.youtube.com\/videoplayback?sparams=id%2Cexpire%2Cip%2Cipbits%2Citag%2Calgorithm%2Cburst%2Cfactor%2Coc%3AU0dYTlFUUV9FSkNNOF9JTlVD&algorithm=throttle-factor&itag=5&ipbits=0&burst=40&sver=3&signature=9326AF57BFE993192A793A4FB441784404B73370.CE3BBF8A9C369A6E74C699B767783E0CAECE66B7&expire=1299193200&key=yt1&ip=0.0.0.0&factor=1.25&id=48334a2162ac9611", "csi_page_type": "watch", "keywords": "smile", "cr": "JP", "rv.1.url": "http:\/\/www.youtube.com\/watch?v=ZHYnYSVZ1rI", "rv.6.thumbnailUrl": "http:\/\/i4.ytimg.com\/vi\/o1fUoIB9If4\/default.jpg", "rv.3.rating": "", "fmt_list": "34\/640x360\/9\/0\/115,18\/640x360\/9\/0\/115,5\/320x240\/7\/0\/0", "rv.7.id": "Mc8R0YYMKAo", "rv.0.rating": "", "rv.6.author": "necomimity", "rv.3.title": "\u3010\u3000\u5b8c\u3000\u6210\u3000\u3011\u604b\u611b\u5439\u3063\u5207\u30ec\u30fc\u30b7\u30e7\u30f3\u3010\u5439 \u3063 \u5207 \u308c \u305f\u3011 (by \u30a2\u30b9\u30ab\u3055\u3093)", "rv.5.id": "cxyQuLL749s", "rv.0.featured": 1, "rv.0.id": "jwY_c2vxNYw", "rv.5.url": "http:\/\/www.youtube.com\/watch?v=cxyQuLL749s", "rv.6.length_seconds": 90, "sourceid": "ys", "timestamp": 1299169195, "rv.0.author": "ilovehumans1", "rv.3.thumbnailUrl": "http:\/\/i2.ytimg.com\/vi\/Aamcj9upjUs\/default.jpg", "rv.2.author": "yeah7766", "rv.6.url": "http:\/\/www.youtube.com\/watch?v=o1fUoIB9If4", "watch_ajax_token": "EYUfkZXvxObXs4hqzIT470v-ril8MTI5OTI1NTU5NQ==", "fmt_map": "34\/640x360\/9\/0\/115,18\/640x360\/9\/0\/115,5\/320x240\/7\/0\/0", "showpopout": 1, "hl": "ja_JP", "endscreen_module": "http:\/\/s.ytimg.com\/yt\/swfbin\/endscreen-vflis_pza.swf", "rv.5.length_seconds": 229, "rv.0.thumbnailUrl": "http:\/\/i3.ytimg.com\/vi\/jwY_c2vxNYw\/default.jpg", "rv.7.author": "Toweleeie101", "referrer": "http:\/\/www.youtube.com\/results?search_query=%E3%81%BE%E3%81%A9%E3%81%8B%E2%98%86%E3%83%9E%E3%82%AE%E3%82%AB&aq=0", "leanback_module": "http:\/\/s.ytimg.com\/yt\/swfbin\/leanback_module-vflt3sFnU.swf", "rv.1.length_seconds": 180, "rv.3.id": "Aamcj9upjUs", "rv.2.id": "Ixazj9bj478", "rv.2.length_seconds": 90, "t": "vjVQa1PpcFOY_CggToExDmVl9FNQ8vaNA-gQ_uR2rwQ=", "rv.6.id": "o1fUoIB9If4", "rv.6.view_count": 26034, "rv.3.author": "rihoko6", "rv.4.id": "tC7BqMv-9JA", "video_id": "SDNKIWKslhE", "rv.4.author": "Jewelpettwinkle", "rv.7.thumbnailUrl": "http:\/\/i2.ytimg.com\/vi\/Mc8R0YYMKAo\/default.jpg", "sk": "n5yT2S_5yHU8iUszPawvjuJkUTF9yss8U", "allow_embed": 1, "fmt_stream_map": "34|http:\/\/v9.lscache1.c.youtube.com\/videoplayback?sparams=id%2Cexpire%2Cip%2Cipbits%2Citag%2Calgorithm%2Cburst%2Cfactor%2Coc%3AU0dYTlFUUV9FSkNNOF9JTlVD&algorithm=throttle-factor&itag=34&ipbits=0&burst=40&sver=3&signature=4D216F61C63A1B9DDDD3A837F3EFFCBCDA06297B.ABC59F7AAB4A47CC938CB6833A014701666234CA&expire=1299193200&key=yt1&ip=0.0.0.0&factor=1.25&id=48334a2162ac9611||tc.v9.cache1.c.youtube.com,18|http:\/\/v21.lscache4.c.youtube.com\/videoplayback?sparams=id%2Cexpire%2Cip%2Cipbits%2Citag%2Calgorithm%2Cburst%2Cfactor%2Coc%3AU0dYTlFUUV9FSkNNOF9JTlVD&algorithm=throttle-factor&itag=18&ipbits=0&burst=40&sver=3&signature=B38170914BA6288E84041B3BFAE6E4ED67F7E688.A5810CB3FC25AD29129D3006F907ECFB6D445FCA&expire=1299193200&key=yt1&ip=0.0.0.0&factor=1.25&id=48334a2162ac9611||tc.v21.cache4.c.youtube.com,5|http:\/\/v7.lscache8.c.youtube.com\/videoplayback?sparams=id%2Cexpire%2Cip%2Cipbits%2Citag%2Calgorithm%2Cburst%2Cfactor%2Coc%3AU0dYTlFUUV9FSkNNOF9JTlVD&algorithm=throttle-factor&itag=5&ipbits=0&burst=40&sver=3&signature=9326AF57BFE993192A793A4FB441784404B73370.CE3BBF8A9C369A6E74C699B767783E0CAECE66B7&expire=1299193200&key=yt1&ip=0.0.0.0&factor=1.25&id=48334a2162ac9611||tc.v7.cache8.c.youtube.com", "rv.2.rating": "", "rv.7.title": "\u9b54\u6cd5\u5c11\u5973\u307e\u3069\u304b\u2606\u30de\u30ae\u30ab \u300emog mog-MAD\u300f \u3010MAD\u3011", "rv.0.length_seconds": 198, "rv.1.id": "ZHYnYSVZ1rI", "q": "\u00e3\u0081\u00be\u00e3\u0081\u00a9\u00e3\u0081\u008b\u00e2\u0098\u0086\u00e3\u0083\u009e\u00e3\u0082\u00ae\u00e3\u0082\u00ab", "rv.6.title": "\u9b54\u6cd5\u5c11\u5973\u307e\u3069\u304b\u2606\u30de\u30ae\u30ab\u3000OP", "rv.4.length_seconds": 133, "rv.1.thumbnailUrl": "http:\/\/i3.ytimg.com\/vi\/ZHYnYSVZ1rI\/default.jpg", "rv.5.view_count": 83261, "length_seconds": 91, "enablejsapi": 1, "plid": "AASdlmZqc-oeIFYB", "rv.5.rating": "", "rv.4.url": "http:\/\/www.youtube.com\/watch?v=tC7BqMv-9JA", "rv.1.author": "supertortoise54068", "rv.1.rating": "", "rv.4.title": "\u30b8\u30e5\u30a8\u30eb\u30da\u30c3\u30c8\u3066\u3043\u3093\u304f\u308b\u2606\u3068\u3042\u306eOP\u30c7\u30e2\u3092\u6df7\u305c\u3066\u307f\u305f", "rv.5.thumbnailUrl": "http:\/\/i4.ytimg.com\/vi\/cxyQuLL749s\/default.jpg", "watermark": "http:\/\/s.ytimg.com\/yt\/swf\/logo-vfl_bP6ud.swf,http:\/\/s.ytimg.com\/yt\/swf\/hdlogo-vfloR6wva.swf", "rv.0.title": "\u3010\u624b\u66f8\u304d\u3011\u3081_\u3081_\u3057_\u3044_\u3068\u304b\u8272\u3005\u3010izsz\u3011.flv", "rv.7.rating": "", "rv.3.url": "http:\/\/www.youtube.com\/watch?v=Aamcj9upjUs", "rv.2.url": "http:\/\/www.youtube.com\/watch?v=Ixazj9bj478", "rv.7.url": "http:\/\/www.youtube.com\/watch?v=Mc8R0YYMKAo", "rv.2.view_count": 9563, "logwatch": "1", "rv.4.view_count": 12987, "rv.1.view_count": 7762, "rv.5.title": "\u5143\u9996\u75db\u7f75\u865b\u6df5 (\u9b54\u6cd5\u5c11\u5973\u307e\u3069\u304b\u7b2c\u4e09\u96c6) 2011\/1\/21", "rv.6.rating": "", "vq": "auto", "rv.1.title": "\uff08\uffe3\uff13\uffe3\uff09\u306e\u624b\u66f8\u304d\u3067\u9b54\u6cd5\u5c11\u5973\u307e\u3069\u304b\u2606\u30de\u30ae\u30ab\uff2f\uff30\u3010\u30c8\u30ec\u30fc\u30b9\u3011\u3010\u6bd4\u8f03\u3011", "rv.7.view_count": 33606, "rv.3.length_seconds": 92, "rv.5.author": "ben00216"}, "url_v9as2": "http:\/\/s.ytimg.com\/yt\/swfbin\/watch-vflLhLv7L.swf", "params": {"allowscriptaccess": "always", "wmode": "direct", "bgcolor": "#000000", "allowfullscreen": "true"}, "attrs": {"width": "640", "id": "movie_player", "height": "390"}, "url_v8": "http:\/\/s.ytimg.com\/yt\/swfbin\/watch_v8-vflJBjw-5.swf"};
Modified: trunk/libwww-youtube-download-perl/t/01_simple.t
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libwww-youtube-download-perl/t/01_simple.t?rev=70663&op=diff
==============================================================================
--- trunk/libwww-youtube-download-perl/t/01_simple.t (original)
+++ trunk/libwww-youtube-download-perl/t/01_simple.t Sun Mar 6 14:31:00 2011
@@ -25,42 +25,30 @@
ok my $data = $client->prepare_download($video_id);
is_deeply $data, +{
- video_id => $video_id,
- fmt_lsit => [ '22', '35', '34', '18', '5' ],
- suffix => '.mp4',
- title => 'ãé«é³è³ªãä¾µç¥!ã¤ã«å¨OP ãä¾µç¥ãã¹ã¹ã¡âãæè©ä»ã&ç»åVer.',
- fmt => '22',
- video_url => 'http://v5.lscache8.c.youtube.com/videoplayback?ip=119.0.0.0&sparams=id%2Cexpire%2Cip%2Cipbits%2Citag%2Cratebypass&fexp=906322%2C907048&itag=22&ipbits=8&sver=3&ratebypass=yes&expire=1292364000&key=yt1&signature=188170E1FAC8B18D7E88B133DC49C02AD6187825.84C91F49CF2E39ED76849BCF0741F228AA623551&id=472e91ba99b792a3',
- video_url_map => {
- 22 => {
- suffix => '.mp4',
- url => 'http://v5.lscache8.c.youtube.com/videoplayback?ip=119.0.0.0&sparams=id%2Cexpire%2Cip%2Cipbits%2Citag%2Cratebypass&fexp=906322%2C907048&itag=22&ipbits=8&sver=3&ratebypass=yes&expire=1292364000&key=yt1&signature=188170E1FAC8B18D7E88B133DC49C02AD6187825.84C91F49CF2E39ED76849BCF0741F228AA623551&id=472e91ba99b792a3',
- resolution => '1280x720',
- fmt => '22'
+ 'video_id' => $video_id,
+ 'fmt_lsit' => [ '34', '18', '5' ],
+ 'suffix' => '.flv',
+ 'title' => 'ã®ææ¸ãã§éæ³å°å¥³ã¾ã©ãâãã®ã«ï¼¯ï¼°.mp4',
+ 'fmt' => '34',
+ 'video_url' => 'http://v9.lscache1.c.youtube.com/videoplayback?sparams=id%2Cexpire%2Cip%2Cipbits%2Citag%2Calgorithm%2Cburst%2Cfactor%2Coc%3AU0dYTlFUUV9FSkNNOF9JTlVD&algorithm=throttle-factor&itag=34&ipbits=0&burst=40&sver=3&signature=4D216F61C63A1B9DDDD3A837F3EFFCBCDA06297B.ABC59F7AAB4A47CC938CB6833A014701666234CA&expire=1299193200&key=yt1&ip=0.0.0.0&factor=1.25&id=48334a2162ac9611',
+ 'video_url_map' => {
+ '34' => {
+ 'suffix' => '.flv',
+ 'url' => 'http://v9.lscache1.c.youtube.com/videoplayback?sparams=id%2Cexpire%2Cip%2Cipbits%2Citag%2Calgorithm%2Cburst%2Cfactor%2Coc%3AU0dYTlFUUV9FSkNNOF9JTlVD&algorithm=throttle-factor&itag=34&ipbits=0&burst=40&sver=3&signature=4D216F61C63A1B9DDDD3A837F3EFFCBCDA06297B.ABC59F7AAB4A47CC938CB6833A014701666234CA&expire=1299193200&key=yt1&ip=0.0.0.0&factor=1.25&id=48334a2162ac9611',
+ 'resolution' => '640x360',
+ 'fmt' => '34',
},
- 35 => {
- suffix => '.flv',
- url => 'http://v20.lscache8.c.youtube.com/videoplayback?ip=119.0.0.0&sparams=id%2Cexpire%2Cip%2Cipbits%2Citag%2Calgorithm%2Cburst%2Cfactor&fexp=906322%2C907048&algorithm=throttle-factor&itag=35&ipbits=8&burst=40&sver=3&expire=1292364000&key=yt1&signature=4F6ACD6242498CFCF188AE9DDAA7F017573A9EF1.7EBC6022BF96AB1341F172C4663ED34CAAD6F57C&factor=1.25&id=472e91ba99b792a3',
- resolution => '854x480',
- fmt => '35'
+ '18' => {
+ 'suffix' => '.mp4',
+ 'url' => 'http://v21.lscache4.c.youtube.com/videoplayback?sparams=id%2Cexpire%2Cip%2Cipbits%2Citag%2Calgorithm%2Cburst%2Cfactor%2Coc%3AU0dYTlFUUV9FSkNNOF9JTlVD&algorithm=throttle-factor&itag=18&ipbits=0&burst=40&sver=3&signature=B38170914BA6288E84041B3BFAE6E4ED67F7E688.A5810CB3FC25AD29129D3006F907ECFB6D445FCA&expire=1299193200&key=yt1&ip=0.0.0.0&factor=1.25&id=48334a2162ac9611',
+ 'resolution' => '640x360',
+ 'fmt' => '18',
},
- 34 => {
- suffix => '.flv',
- url => 'http://v10.lscache2.c.youtube.com/videoplayback?ip=119.0.0.0&sparams=id%2Cexpire%2Cip%2Cipbits%2Citag%2Calgorithm%2Cburst%2Cfactor&fexp=906322%2C907048&algorithm=throttle-factor&itag=34&ipbits=8&burst=40&sver=3&expire=1292364000&key=yt1&signature=0552BEC0316BF3FB088F55C6B0BEF318CE0A7E3F.6844CB6F5E0B9CA10520F870B40E34EC39BDA1DB&factor=1.25&id=472e91ba99b792a3',
- resolution => '640x360',
- fmt => '34'
- },
- 18 => {
- suffix => '.mp4',
- url => 'http://v3.lscache3.c.youtube.com/videoplayback?ip=119.0.0.0&sparams=id%2Cexpire%2Cip%2Cipbits%2Citag%2Calgorithm%2Cburst%2Cfactor&fexp=906322%2C907048&algorithm=throttle-factor&itag=18&ipbits=8&burst=40&sver=3&expire=1292364000&key=yt1&signature=B43BDC27CD9A3DA0BA665E58F9F070D5A1391E08.550D5AEACF834E86E9BB88566EF523FC671B9B84&factor=1.25&id=472e91ba99b792a3',
- resolution => '640x360',
- fmt => '18'
- },
- 5 => {
- suffix => '.flv',
- url => 'http://v3.lscache1.c.youtube.com/videoplayback?ip=119.0.0.0&sparams=id%2Cexpire%2Cip%2Cipbits%2Citag%2Calgorithm%2Cburst%2Cfactor&fexp=906322%2C907048&algorithm=throttle-factor&itag=5&ipbits=8&burst=40&sver=3&expire=1292364000&key=yt1&signature=328896AB78A29120F0015EC678BD7A5C5B710B98.4F3095A933ED887375887DBA4722C259CC724A31&factor=1.25&id=472e91ba99b792a3',
- resolution => '320x240',
- fmt => '5'
+ '5' => {
+ 'suffix' => '.flv',
+ 'url' => 'http://v7.lscache8.c.youtube.com/videoplayback?sparams=id%2Cexpire%2Cip%2Cipbits%2Citag%2Calgorithm%2Cburst%2Cfactor%2Coc%3AU0dYTlFUUV9FSkNNOF9JTlVD&algorithm=throttle-factor&itag=5&ipbits=0&burst=40&sver=3&signature=9326AF57BFE993192A793A4FB441784404B73370.CE3BBF8A9C369A6E74C699B767783E0CAECE66B7&expire=1299193200&key=yt1&ip=0.0.0.0&factor=1.25&id=48334a2162ac9611',
+ 'resolution' => '320x240',
+ 'fmt' => '5',
},
},
};
More information about the Pkg-perl-cvs-commits
mailing list