[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#625851: pu: package clive/2.2.13-5+squeeze2



Package: release.debian.org
Severity: normal
User: release.debian.org@packages.debian.org
Usertags: pu

Hi,

clive needs a small patch to handle changes to the liveleak.com website.
I have prepared an update using the upstream patch[1] included in 2.2.25.

Please consider making this also available via squeeze-updates.

Regards,
Ansgar

[1] http://repo.or.cz/w/clive.git/commitdiff/ad4725c3001e84581d5bca416b2bc3abc316b25b
diff -Nru clive-2.2.13/debian/changelog clive-2.2.13/debian/changelog
--- clive-2.2.13/debian/changelog	2011-03-07 08:16:53.000000000 +0100
+++ clive-2.2.13/debian/changelog	2011-05-06 12:12:11.000000000 +0200
@@ -1,3 +1,10 @@
+clive (2.2.13-5+squeeze2) stable; urgency=low
+
+  * Adapt for liveleak.com changes.
+    + new patch: liveleak-fix-from-2.2.25.patch
+
+ -- Ansgar Burchardt <ansgar@debian.org>  Fri, 06 May 2011 12:11:29 +0200
+
 clive (2.2.13-5+squeeze1) stable; urgency=low
 
   * Adapt for youtube.com changes. (Closes: #616575)
diff -Nru clive-2.2.13/debian/patches/liveleak-fix-from-2.2.25.patch clive-2.2.13/debian/patches/liveleak-fix-from-2.2.25.patch
--- clive-2.2.13/debian/patches/liveleak-fix-from-2.2.25.patch	1970-01-01 01:00:00.000000000 +0100
+++ clive-2.2.13/debian/patches/liveleak-fix-from-2.2.25.patch	2011-05-06 12:09:33.000000000 +0200
@@ -0,0 +1,40 @@
+From: Ansgar Burchardt <ansgar@debian.org>
+Date: Fri, 06 May 2011 12:05:08 +0200
+Bug: http://sourceforge.net/apps/trac/clive/ticket/11
+Origin: backport, http://repo.or.cz/w/clive.git/commitdiff/ad4725c3001e84581d5bca416b2bc3abc316b25b
+
+--- a/lib/clive/Host/Liveleak.pm
++++ b/lib/clive/Host/Liveleak.pm
+@@ -34,8 +34,8 @@
+     $$props->video_host("liveleak");
+ 
+     my %re = (
+-        id     => qr|token=(.*?)'|,
+-        config => qr|'config','(.*?)'|,
++        id     => qr|token=(.*?)['&]|,
++        config => qr|config: "(.*?)"|,
+     );
+ 
+     my $tmp;
+@@ -63,18 +63,9 @@
+         my %re = ( file => qr|<file>(.*?)</file>| );
+         my $tmp;
+         if ( clive::Util::matchRegExps( \%re, \$tmp, \$content ) == 0 ) {
+-            if ( $curl->fetchToMem( $tmp->{file}, \$content, "playlist" )
+-                == 0 )
+-            {
+-                %re = ( location => qr|<location>(.*?)</location>| );
+-                $tmp = undef;
+-                if (clive::Util::matchRegExps( \%re, \$tmp, \$content ) == 0 )
+-                {
+-                    $self->{video_link} = $tmp->{location};
+-                    $self->{video_link} =~ tr/ //d;
+-                    return (0);
+-                }
+-            }
++            $self->{video_link} = $tmp->{file};
++            $self->{video_link} =~ tr/ //d;
++            return (0);
+         }
+     }
+     return (1);
diff -Nru clive-2.2.13/debian/patches/series clive-2.2.13/debian/patches/series
--- clive-2.2.13/debian/patches/series	2011-03-07 08:16:29.000000000 +0100
+++ clive-2.2.13/debian/patches/series	2011-05-06 11:59:00.000000000 +0200
@@ -3,3 +3,4 @@
 fix-606540-youtube.patch
 0001-Vimeo.pm-Fix-video-ID-parsing-2.patch
 0001-Youtube-Fix-video-ID-parsing-10.patch
+liveleak-fix-from-2.2.25.patch

Reply to: