Skip Menu |
 

This queue is for tickets about the WebService-YouTube CPAN distribution.

Report information
The Basics
Id: 40171
Status: resolved
Priority: 0/
Queue: WebService-YouTube

People
Owner: yoshida [...] cpan.org
Requestors: patrick.kuijvenhoven [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Received: from la.mx.develooper.com (x1.develooper.com [63.251.223.170]) by diesel.bestpractical.com (Postfix) with SMTP id CE2B519B8069 for <bug-WebService-YouTube [...] rt.cpan.org>; Sun, 19 Oct 2008 16:18:37 -0400 (EDT)
Received: (qmail 22330 invoked by uid 103); 19 Oct 2008 20:18:37 -0000
Received: from x16.dev (10.0.100.26) by x1.dev with QMQP; 19 Oct 2008 20:18:37 -0000
Received: from fg-out-1718.google.com (HELO fg-out-1718.google.com) (72.14.220.157) by 16.mx.develooper.com (qpsmtpd/0.43rc1) with ESMTP; Sun, 19 Oct 2008 13:18:33 -0700
Received: by fg-out-1718.google.com with SMTP id d23so1271226fga.15 for <bug-WebService-YouTube [...] rt.cpan.org>; Sun, 19 Oct 2008 13:18:29 -0700 (PDT)
Received: by 10.181.10.10 with SMTP id n10mr2450080bki.72.1224447509362; Sun, 19 Oct 2008 13:18:29 -0700 (PDT)
Received: by 10.180.252.15 with HTTP; Sun, 19 Oct 2008 13:18:29 -0700 (PDT)
Delivered-To: cpan-bug+WebService-YouTube [...] diesel.bestpractical.com
MIME-Version: 1.0
Subject: Util::get_video() broken
Domainkey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type :content-transfer-encoding:content-disposition; b=aNsQxDxXqwDJhR9dVx4y4dajrMiJtVPHh5IYaIhx3LGe8K1ZunGIpgQQE4wM+M3hoR APFDtV+xS4QEkRWBHTJ4B+TnY+7uPepMAwUCqCuDqaD7eblCpTCOjcWtn5MgTHiFec97 z6e1F7cJTMnsc/eaGQBZlNKkW1B6rCWTbvFl4=
X-Spam-Status: No, hits=0.0 required=8.0 tests=DK_SIGNED,SPF_PASS,WHOIS_NETSOLPR
Return-Path: <patrick.kuijvenhoven [...] gmail.com>
Dkim-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type:content-transfer-encoding :content-disposition; bh=Dd72prXqva68tC1LqgpD8dyugSNMJT/Az9H0wmdtU3U=; b=jOtx5vdWOiiauwLD/K+bmRK+2olhxCak9MVQP0CMtG73VK/Fy4zCMr8omsPZ1vUpti +6+/qEp6+Ovd+G8e/0kp4fd1kKd9PQEMhNBbtm97x4jdKCFuutWaqhYSLtsPy3WCBVmg 1CI6SRZXGqYCmQYh2T4C2rkxeVKAYmdhURJYE=
X-Spam-Check-BY: 16.mx.develooper.com
X-Original-To: bug-WebService-YouTube [...] rt.cpan.org
Content-Disposition: inline
Date: Sun, 19 Oct 2008 22:18:29 +0200
X-Spam-Level: *
Message-Id: <bff1aa610810191318m65143f05sc74b2afa7c828dd9 [...] mail.gmail.com>
content-type: text/plain; charset="utf-8"
To: bug-WebService-YouTube [...] rt.cpan.org
Content-Transfer-Encoding: 7bit
From: "Patrick Kuijvenhoven" <patrick.kuijvenhoven [...] gmail.com>
X-RT-Original-Encoding: ISO-8859-1
Content-Length: 969
Download (untitled) / with headers
text/plain 969b
Hi, At https://bugs.launchpad.net/ubuntu/+source/libwebservice-youtube-perl/+bug/268443 the following patch is suggested to fix WebService::YouTube::Util::get_video, which currently seems to be broken. --- /usr/share/perl5/WebService/YouTube/Util.pm.orig 2008-10-18 16:10:23.000000000 +0200 +++ /usr/share/perl5/WebService/YouTube/Util.pm 2008-10-18 16:10:50.000000000 +0200 @@ -80,7 +80,7 @@ if ( $content =~ m{"/player2\.swf\?([^"]+)",\s*"movie_player"}msx ) { return "http://youtube.com/get_video.php?$1"; } - if ( $content =~ m{\bt:(['"])(.+?)\1}msx ) { + if ( $content =~ m{,\x20(")t":\x20"([^"]+)"}msx ) { return "http://youtube.com/get_video.php?video_id=$video_id&t=$2"; } if ( $content =~ m{class="errorBox"[^>]*>\s*([^<]+?)\s*<}msx ) { The regular expression is inspired on the one that is used in the Python script that can be found at http://www.arrakis.es/~rggi3/youtube-dl/youtube-dl Best regards, Patrick
MIME-Version: 1.0
In-Reply-To: <bff1aa610810191318m65143f05sc74b2afa7c828dd9 [...] mail.gmail.com>
X-Mailer: MIME-tools 5.427 (Entity 5.427)
Content-Disposition: inline
Charset: utf8
References: <bff1aa610810191318m65143f05sc74b2afa7c828dd9 [...] mail.gmail.com>
Content-Type: text/plain
Message-ID: <rt-3.6.HEAD-29719-1232502839-690.40171-0-0 [...] rt.cpan.org>
Content-Transfer-Encoding: binary
X-RT-Original-Encoding: utf-8
Content-Length: 20
released as v1.0.3.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.