aboutsummaryrefslogtreecommitdiffstats
path: root/www/youtube_dl
diff options
context:
space:
mode:
authorrafan <rafan@FreeBSD.org>2008-06-14 16:41:42 +0800
committerrafan <rafan@FreeBSD.org>2008-06-14 16:41:42 +0800
commitb1d48f2ebe63e5adc58d79f60570a59febd8ef32 (patch)
tree1a434f365ec960679bf71972e87ba6db3e01da88 /www/youtube_dl
parent487741e90f347ac9b2d379519f08e04b41890982 (diff)
downloadfreebsd-ports-gnome-b1d48f2ebe63e5adc58d79f60570a59febd8ef32.tar.gz
freebsd-ports-gnome-b1d48f2ebe63e5adc58d79f60570a59febd8ef32.tar.zst
freebsd-ports-gnome-b1d48f2ebe63e5adc58d79f60570a59febd8ef32.zip
- Update to 2008.06.08
PR: ports/124467 Submitted by: Pankov Pavel <pankov_p at mail.ru> (maintainer)
Diffstat (limited to 'www/youtube_dl')
-rw-r--r--www/youtube_dl/Makefile2
-rw-r--r--www/youtube_dl/distinfo6
-rw-r--r--www/youtube_dl/files/conv2avi.patch27
3 files changed, 16 insertions, 19 deletions
diff --git a/www/youtube_dl/Makefile b/www/youtube_dl/Makefile
index 053f889ab6b2..74bbf132a92c 100644
--- a/www/youtube_dl/Makefile
+++ b/www/youtube_dl/Makefile
@@ -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}
diff --git a/www/youtube_dl/distinfo b/www/youtube_dl/distinfo
index cf415cf5ed33..cf73405c0f00 100644
--- a/www/youtube_dl/distinfo
+++ b/www/youtube_dl/distinfo
@@ -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
diff --git a/www/youtube_dl/files/conv2avi.patch b/www/youtube_dl/files/conv2avi.patch
index 54599e0e8919..d3314eefe453 100644
--- a/www/youtube_dl/files/conv2avi.patch
+++ b/www/youtube_dl/files/conv2avi.patch
@@ -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()