unbreak after recent youtube changes, ok martynas@
take maintainership as suggested by martynas (previous maintainer).
This commit is contained in:
parent
ada00c0384
commit
07a4bdee83
@ -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 <martynas@openbsd.org>
|
||||
MAINTAINER= Jonathan Gray <jsg@openbsd.org>
|
||||
|
||||
# Public domain
|
||||
PERMIT_PACKAGE_CDROM= Yes
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user