Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 11 Jun 2008 07:19:34 GMT
From:      Pankov Pavel <pankov_p@mail.ru>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/124467: [patch][maintainer update]Update port: www/youtube_dl to 2008.06.08
Message-ID:  <200806110719.m5B7JYat095912@www.freebsd.org>
Resent-Message-ID: <200806110720.m5B7K2bV079942@freefall.freebsd.org>

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

>Number:         124467
>Category:       ports
>Synopsis:       [patch][maintainer update]Update port: www/youtube_dl to 2008.06.08
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jun 11 07:20:02 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     Pankov Pavel
>Release:        6.3-STABLE
>Organization:
MPEI
>Environment:
FreeBSD vds.pankov.pp.ru 6.3-STABLE FreeBSD 6.3-STABLE #5: Wed May 14 09:14:15 CEST 2008     root@dione.ispsystem.net:/root/src/sys/i386/compile/ISPSYSTEM_PAED  i386
>Description:
- Update www/youtube_dl to 2008.06.08
>How-To-Repeat:

>Fix:
Apply the attached patch.

Patch attached with submission follows:

Index: www/youtube_dl/Makefile
===================================================================
RCS file: /home/ncvs/ports/www/youtube_dl/Makefile,v
retrieving revision 1.22
diff -u -r1.22 Makefile
--- www/youtube_dl/Makefile	22 Apr 2008 00:44:54 -0000	1.22
+++ www/youtube_dl/Makefile	9 Jun 2008 05:49:18 -0000
@@ -6,7 +6,7 @@
 #
 
 PORTNAME=	youtube_dl
-PORTVERSION=	2008.04.20
+PORTVERSION=	2008.06.08
 CATEGORIES=	www
 MASTER_SITES=	http://www.arrakis.es/~rggi3/youtube-dl/
 DISTNAME=	youtube-dl-${PORTVERSION}
Index: www/youtube_dl/distinfo
===================================================================
RCS file: /home/ncvs/ports/www/youtube_dl/distinfo,v
retrieving revision 1.19
diff -u -r1.19 distinfo
--- www/youtube_dl/distinfo	22 Apr 2008 00:44:54 -0000	1.19
+++ www/youtube_dl/distinfo	9 Jun 2008 05:49:18 -0000
@@ -1,3 +1,3 @@
-MD5 (youtube-dl-2008.04.20) = f79194714ad3d4913fc01417f4c71195
-SHA256 (youtube-dl-2008.04.20) = 8919e38ca19ba3f49dd773ad4d0ac96dd018b44a565b9a4aa818cfa6fecede1a
-SIZE (youtube-dl-2008.04.20) = 16497
+MD5 (youtube-dl-2008.06.08) = f74dad01219537fdb59c69b915f1d7ee
+SHA256 (youtube-dl-2008.06.08) = 3bebe8503ca41db8073a8a15a5773a8815e764a84f51f3f27c720a8c466c1c5a
+SIZE (youtube-dl-2008.06.08) = 16488
Index: www/youtube_dl/files/conv2avi.patch
===================================================================
RCS file: /home/ncvs/ports/www/youtube_dl/files/conv2avi.patch,v
retrieving revision 1.5
diff -u -r1.5 conv2avi.patch
--- www/youtube_dl/files/conv2avi.patch	26 Mar 2008 13:04:05 -0000	1.5
+++ www/youtube_dl/files/conv2avi.patch	9 Jun 2008 05:49:18 -0000
@@ -1,24 +1,21 @@
---- youtube-dl.orig	Wed Jan 30 14:18:50 2008
-+++ youtube-dl	Thu Jan 31 21:36:49 2008
-@@ -208,6 +208,7 @@
+--- youtube-dl.orig	2008-06-09 09:36:33.000000000 +0400
++++ youtube-dl	2008-06-09 09:43:10.000000000 +0400
+@@ -216,6 +216,7 @@
  cmdl_parser.add_option('-t', '--title', action='store_true', dest='use_title', help='use title in file name')
  cmdl_parser.add_option('-l', '--literal', action='store_true', dest='use_literal', help='use literal title in file name')
  cmdl_parser.add_option('-n', '--netrc', action='store_true', dest='use_netrc', help='use .netrc authentication data')
 +cmdl_parser.add_option('-a', '--avi', action='store_true', dest='use_avi', help='convert file to MPEG4 format')
  cmdl_parser.add_option('-g', '--get-url', action='store_true', dest='get_url', help='print final video URL only')
  cmdl_parser.add_option('-2', '--title-too', action='store_true', dest='get_title', help='used with -g, print title too')
- (cmdl_opts, cmdl_args) = cmdl_parser.parse_args()
-@@ -382,6 +383,26 @@
- 
- except KeyboardInterrupt:
- 	sys.exit('\n')
+ cmdl_parser.add_option('-f', '--format', dest='video_format', metavar='FORMAT', help='append &fmt=FORMAT to the URL')
+@@ -420,6 +421,22 @@
+ 	
+ 	except KeyboardInterrupt:
+ 		sys.exit('\n')
+-	
 +
-+# Convert to avi if needed
-+if cmdl_opts.use_avi and not cmdl_opts.best_quality:
-+	if cmdl_opts.outfile is None:
-+		avi_filename = '%s.avi' % video_filename[:-4]
-+	else:
-+		avi_filename = '%s.avi' % video_filename
++	# Convert to avi if needed
++	avi_filename = '%s.avi' % video_filename
 +
 +	try:
 +		os.system('%%CONV2AVI_CMD%% "%s" "%s" > %s 2> %s' % (video_filename, avi_filename, os.path.devnull, os.path.devnull))
@@ -32,6 +29,6 @@
 +		os.unlink(video_filename)
 +	except OSError:
 +		sys.exit('Error: unable to remove downloaded file.\n')
- 
++
  # Finish
  sys.exit()


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



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