From 07a4bdee83f60888cd8de764905127e3640aebeb Mon Sep 17 00:00:00 2001 From: jsg Date: Thu, 13 Dec 2012 02:48:15 +0000 Subject: [PATCH] unbreak after recent youtube changes, ok martynas@ take maintainership as suggested by martynas (previous maintainer). --- net/yt/Makefile | 5 +++-- net/yt/files/yt.lua | 4 ++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/net/yt/Makefile b/net/yt/Makefile index b6575ac864e..4931cf6ede2 100644 --- a/net/yt/Makefile +++ b/net/yt/Makefile @@ -1,14 +1,15 @@ -# $OpenBSD: Makefile,v 1.48 2012/10/31 17:19:39 gsoares Exp $ +# $OpenBSD: Makefile,v 1.49 2012/12/13 02:48:15 jsg Exp $ PKG_ARCH = * COMMENT= fetch YouTube and Google videos PKGNAME= yt-20 +REVISION= 0 CATEGORIES= net www DISTFILES= -MAINTAINER= Martynas Venckus +MAINTAINER= Jonathan Gray # Public domain PERMIT_PACKAGE_CDROM= Yes diff --git a/net/yt/files/yt.lua b/net/yt/files/yt.lua index e081c29fc05..ed606fb4f5b 100644 --- a/net/yt/files/yt.lua +++ b/net/yt/files/yt.lua @@ -1,5 +1,5 @@ #!${MODLUA_BIN} --- $OpenBSD: yt.lua,v 1.36 2012/09/30 02:45:04 jsg Exp $ +-- $OpenBSD: yt.lua,v 1.37 2012/12/13 02:48:15 jsg 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 @@ -112,7 +112,7 @@ for i = 1, table.getn(urls) do }) body = table.concat(t) body = url_decode(body) - encurl = string.match(body, "url=(http[^,=&]-cache.-type.-)[&;]") + encurl = string.match(body, "url=(http[^,=&]-videoplayback.-type.-)[&;]") -- signature sig = string.match(body, "sig=(.-)&") if sig then