aboutsummaryrefslogtreecommitdiff
path: root/www/youtube_dl
diff options
context:
space:
mode:
authorDavid E. O'Brien <obrien@FreeBSD.org>2008-02-04 10:24:47 +0000
committerDavid E. O'Brien <obrien@FreeBSD.org>2008-02-04 10:24:47 +0000
commitf8e1345b60925268f7e7c73dd57e783c7a13cf35 (patch)
tree232fe29b6340cddf64f4f5544c03194d56d2cd78 /www/youtube_dl
parent30e8a70b911e26af51f45de86677e5ec5cb66e9f (diff)
downloadports-f8e1345b60925268f7e7c73dd57e783c7a13cf35.tar.gz
ports-f8e1345b60925268f7e7c73dd57e783c7a13cf35.zip
Notes
Diffstat (limited to 'www/youtube_dl')
-rw-r--r--www/youtube_dl/files/conv2avi.patch118
1 files changed, 44 insertions, 74 deletions
diff --git a/www/youtube_dl/files/conv2avi.patch b/www/youtube_dl/files/conv2avi.patch
index 3f9c6581640b..4e19c7243325 100644
--- a/www/youtube_dl/files/conv2avi.patch
+++ b/www/youtube_dl/files/conv2avi.patch
@@ -1,74 +1,44 @@
---- youtube-dl.orig Wed Jan 30 14:18:50 2008
-+++ youtube-dl Thu Jan 31 21:36:49 2008
-@@ -208,6 +208,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='output file in avi 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')
-+
-+# Convert to avi if needed
-+if cmdl_opts.use_avi:
-+ if cmdl_opts.outfile is None:
-+ avi_filename = '%s.avi' % video_filename[:-4]
-+ else:
-+ 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))
-+ cond_print('Video file converted to %s\n' % avi_filename)
-+ except OSError:
-+ sys.exit('Error: unable to convert file.\n')
-+ except KeyboardInterrupt:
-+ sys.exit('\n')
-+
-+ try:
-+ os.unlink(video_filename)
-+ except OSError:
-+ sys.exit('Error: unable to remove downloaded file.\n')
-
- # Finish
- sys.exit()
---- youtube-dl.orig Wed Jan 30 14:18:50 2008
-+++ youtube-dl Thu Jan 31 21:36:49 2008
-@@ -208,6 +208,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='output file in avi 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')
-+
-+# Convert to avi if needed
-+if cmdl_opts.use_avi:
-+ if cmdl_opts.outfile is None:
-+ avi_filename = '%s.avi' % video_filename[:-4]
-+ else:
-+ 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))
-+ cond_print('Video file converted to %s\n' % avi_filename)
-+ except OSError:
-+ sys.exit('Error: unable to convert file.\n')
-+ except KeyboardInterrupt:
-+ sys.exit('\n')
-+
-+ try:
-+ os.unlink(video_filename)
-+ except OSError:
-+ sys.exit('Error: unable to remove downloaded file.\n')
-
- # Finish
- sys.exit()
+Index: www/youtube_dl/files/conv2avi.patch
+===================================================================
+RCS file: www/youtube_dl/files/conv2avi.patch
+diff -N www/youtube_dl/files/conv2avi.patch
+--- /dev/null 1 Jan 1970 00:00:00 -0000
++++ www/youtube_dl/files/conv2avi.patch 31 Jan 2008 19:32:45 -0000
+@@ -0,0 +1,37 @@
++--- youtube-dl.orig Wed Jan 30 14:18:50 2008
+++++ youtube-dl Thu Jan 31 21:36:49 2008
++@@ -208,6 +208,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='output file in avi 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')
+++
+++# Convert to avi if needed
+++if cmdl_opts.use_avi:
+++ if cmdl_opts.outfile is None:
+++ avi_filename = '%s.avi' % video_filename[:-4]
+++ else:
+++ 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))
+++ cond_print('Video file converted to %s\n' % avi_filename)
+++ except OSError:
+++ sys.exit('Error: unable to convert file.\n')
+++ except KeyboardInterrupt:
+++ sys.exit('\n')
+++
+++ try:
+++ os.unlink(video_filename)
+++ except OSError:
+++ sys.exit('Error: unable to remove downloaded file.\n')
++
++ # Finish
++ sys.exit()