Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 21 Nov 2010 16:39:46 GMT
From:      Jamie Landeg Jones <jamie@bishopston.net>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/152452: Update port: www/youtube_dl
Message-ID:  <201011211639.oALGdkC3022649@catflap.bishopston.net>
Resent-Message-ID: <201011211640.oALGe9nl070206@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         152452
>Category:       ports
>Synopsis:       Update port: www/youtube_dl
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          update
>Submitter-Id:   current-users
>Arrival-Date:   Sun Nov 21 16:40:08 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator:     Jamie Landeg Jones
>Release:        FreeBSD 8.1-STABLE i386
>Organization:
http://www.bishopston.com/jamie/
>Environment:
System: FreeBSD catflap.bishopston.net 8.1-STABLE FreeBSD 8.1-STABLE #0: Wed Nov 10 20:48:34 GMT 2010 root@catflap.bishopston.net:/usr/obj/usr/src/sys/CATFLAP i386


	
>Description:
Upgrades youtube-dl to latest version. Of particular note is the fix
to downloading "encoded" rtmp streams with rtmpdump

Please note, on applying this patch, for some reason the file "patch-youtube-dl"
is created in the current directory rather that www/youtube_dl/files, so will
have to be manually moved on applying patch.

Cheers,
jamie
	
>How-To-Repeat:
	
>Fix:

	

--- patch begins here ---
--- www/youtube_dl/Makefile.orig	2010-11-11 23:23:28.000000000 +0000
+++ www/youtube_dl/Makefile	2010-11-21 16:09:50.000000000 +0000
@@ -6,9 +6,9 @@
 #
 
 PORTNAME=	youtube_dl
-PORTVERSION=	2010.10.24
+PORTVERSION=	2010.11.19
 CATEGORIES=	www
-MASTER_SITES=	http://bitbucket.org/rg3/youtube-dl/raw/${PORTVERSION}/
+MASTER_SITES=	https://github.com/rg3/youtube-dl/raw/${PORTVERSION}/
 DISTNAME=	youtube-dl
 EXTRACT_SUFX=	# empty
 DIST_SUBDIR=	${PORTNAME}/${PORTVERSION}
@@ -23,6 +23,14 @@
 
 PLIST_FILES=	bin/youtube-dl
 
+OPTIONS=	RTMPDUMP	"Use RTMPDUMP to download rtmp video streams"	on
+
+.include <bsd.port.options.mk>
+
+.if defined(WITH_RTMPDUMP)
+RUN_DEPENDS+=	rtmpdump:${PORTSDIR}/multimedia/rtmpdump
+.endif
+
 post-extract:
 	@${CP} ${DISTDIR}/${DIST_SUBDIR}/${DISTNAME} ${WRKSRC}/youtube-dl
 
--- www/youtube_dl/distinfo.orig	2010-11-11 23:23:28.000000000 +0000
+++ www/youtube_dl/distinfo	2010-11-21 15:46:30.000000000 +0000
@@ -1,2 +1,2 @@
-SHA256 (youtube_dl/2010.10.24/youtube-dl) = 1ec91cd1d791c62777724fb650fde3d6da1ad5c86b4f46ec0368759ce7a7a381
-SIZE (youtube_dl/2010.10.24/youtube-dl) = 82350
+SHA256 (youtube_dl/2010.11.19/youtube-dl) = 016d9559610e2043ba140de41ad69580dc5510dc9001df7614e1d38d87c40e25
+SIZE (youtube_dl/2010.11.19/youtube-dl) = 84216
--- www/youtube_dl/pkg-descr.orig	2009-05-04 14:27:09.000000000 +0100
+++ www/youtube_dl/pkg-descr	2010-11-21 15:46:30.000000000 +0000
@@ -1,4 +1,5 @@
 youtube-dl is a small command-line program for downloading videos 
-from YouTube.com.
+from YouTube.com, metacafe.com, google video, photobucket videos,
+yahoo videos, dailymotion and others
 
-WWW: http://bitbucket.org/rg3/youtube-dl/
+WWW: http://rg3.github.com/youtube-dl/
--- www/youtube_dl/files/patch-youtube-dl.orig	2010-11-21 16:32:30.000000000 +0000
+++ www/youtube_dl/files/patch-youtube-dl	2010-11-21 16:28:54.000000000 +0000
@@ -0,0 +1,11 @@
+--- youtube-dl.orig	2010-11-21 16:27:42.000000000 +0000
++++ youtube-dl	2010-11-21 16:28:42.000000000 +0000
+@@ -509,7 +509,7 @@
+ 		# Download using rtmpdump. rtmpdump returns exit code 2 when
+ 		# the connection was interrumpted and resuming appears to be
+ 		# possible. This is part of rtmpdump's normal usage, AFAIK.
+-		basic_args = ['rtmpdump', '-q'] + [[], ['-W', player_url]][player_url is not None] + ['-r', url, '-o', filename]
++		basic_args = ['rtmpdump'] + [[], ['-q']][self.params.get('quiet', False)] + [[], ['-W', player_url]][player_url is not None] + ['-r', url, '-o', filename]
+ 		retval = subprocess.call(basic_args + [[], ['-e', '-k', '1']][self.params.get('continuedl', False)])
+ 		while retval == 2 or retval == 1:
+ 			prevsize = os.path.getsize(filename)
--- patch ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201011211639.oALGdkC3022649>