From e24e9e0e642478ee1c5eb88f84aa17c6486aa6e8 Mon Sep 17 00:00:00 2001 From: martynas Date: Fri, 18 Sep 2009 21:10:03 +0000 Subject: [PATCH] catch up pattern to the new google video format. don't include thumbnailUrl. makes google videos fetch again - reported by jsg@. --- net/yt/Makefile | 4 ++-- net/yt/files/yt.lua | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/net/yt/Makefile b/net/yt/Makefile index 34540dbdcbc..7a652dc7993 100644 --- a/net/yt/Makefile +++ b/net/yt/Makefile @@ -1,8 +1,8 @@ -# $OpenBSD: Makefile,v 1.31 2009/09/13 18:23:11 martynas Exp $ +# $OpenBSD: Makefile,v 1.32 2009/09/18 21:10:03 martynas Exp $ COMMENT= fetch youtube and google videos -PKGNAME= yt-12 +PKGNAME= yt-13 CATEGORIES= net www DISTFILES= diff --git a/net/yt/files/yt.lua b/net/yt/files/yt.lua index 306cb85b377..0c1d0c519e2 100644 --- a/net/yt/files/yt.lua +++ b/net/yt/files/yt.lua @@ -1,5 +1,5 @@ #!${LOCALBASE}/bin/lua --- $OpenBSD: yt.lua,v 1.25 2009/09/13 18:23:11 martynas Exp $ +-- $OpenBSD: yt.lua,v 1.26 2009/09/18 21:10:03 martynas Exp $ -- Fetch videos from YouTube.com/Videos.Google.com, and convert to MPEG. -- Written by Pedro Martelletto and Martynas Venckus. Public domain. -- Example: lua yt.lua http://www.youtube.com/watch?v=c5uoo1Kl_uA @@ -126,7 +126,7 @@ for i = 1, table.getn(urls) do .. "&t=" .. t .. fmt) else -- We assume it's Google Video URL. - pattern = "'/googleplayer.swf%?videoUrl(.-)'" + pattern = "/googleplayer.swf%?videoUrl(.-)thumbnailUrl" url = assert(string.match(body, pattern)) url = string.gsub (url, "\\x", "%%") url = string.gsub (url, "%%(%x%x)", function(h)