aboutsummaryrefslogtreecommitdiff
path: root/www/youtube_dl/files
diff options
context:
space:
mode:
authorRong-En Fan <rafan@FreeBSD.org>2008-06-14 08:41:42 +0000
committerRong-En Fan <rafan@FreeBSD.org>2008-06-14 08:41:42 +0000
commitde77cb5add9d7c3b27c57eecf7dd0b8aae9bdf54 (patch)
tree57e9761f2834c1d799d4c5c97553bf8cd783ac26 /www/youtube_dl/files
parent453da1653f337b2e22445cf73e81bd71df25b30a (diff)
downloadports-de77cb5add9d7c3b27c57eecf7dd0b8aae9bdf54.tar.gz
ports-de77cb5add9d7c3b27c57eecf7dd0b8aae9bdf54.zip
- Update to 2008.06.08
PR: ports/124467 Submitted by: Pankov Pavel <pankov_p at mail.ru> (maintainer)
Notes
Notes: svn path=/head/; revision=214824
Diffstat (limited to 'www/youtube_dl/files')
-rw-r--r--www/youtube_dl/files/conv2avi.patch27
1 files changed, 12 insertions, 15 deletions
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()