diff options
-rw-r--r-- | www/youtube_dl/Makefile | 2 | ||||
-rw-r--r-- | www/youtube_dl/distinfo | 4 | ||||
-rw-r--r-- | www/youtube_dl/files/patch-youtube_dl____init__.py | 37 |
3 files changed, 40 insertions, 3 deletions
diff --git a/www/youtube_dl/Makefile b/www/youtube_dl/Makefile index 410edfc61015..8bd8cab8dd11 100644 --- a/www/youtube_dl/Makefile +++ b/www/youtube_dl/Makefile @@ -1,7 +1,7 @@ # $FreeBSD$ PORTNAME= youtube_dl -PORTVERSION= 2014.01.23.4 +PORTVERSION= 2014.02.22.1 CATEGORIES= www MASTER_SITES= https://yt-dl.org/downloads/${PORTVERSION}/ DISTNAME= youtube-dl-${PORTVERSION} diff --git a/www/youtube_dl/distinfo b/www/youtube_dl/distinfo index ea0a37eb5009..677f10612fd8 100644 --- a/www/youtube_dl/distinfo +++ b/www/youtube_dl/distinfo @@ -1,2 +1,2 @@ -SHA256 (youtube-dl-2014.01.23.4.tar.gz) = a96d562be51aeb817b9952bff8c65ecab737575b7104381ce62185397408dc72 -SIZE (youtube-dl-2014.01.23.4.tar.gz) = 597125 +SHA256 (youtube-dl-2014.02.22.1.tar.gz) = 8f70eaec5aa1575755f496a4f83edb8779733dda59f0cf3de486228c970886f9 +SIZE (youtube-dl-2014.02.22.1.tar.gz) = 673300 diff --git a/www/youtube_dl/files/patch-youtube_dl____init__.py b/www/youtube_dl/files/patch-youtube_dl____init__.py new file mode 100644 index 000000000000..009315d090fc --- /dev/null +++ b/www/youtube_dl/files/patch-youtube_dl____init__.py @@ -0,0 +1,37 @@ +--- ./youtube_dl/__init__.py.orig 2014-02-25 09:29:35.000000000 +0000 ++++ ./youtube_dl/__init__.py 2014-02-25 09:29:49.000000000 +0000 +@@ -76,7 +76,6 @@ + std_headers, + write_string, + ) +-from .update import update_self + from .FileDownloader import ( + FileDownloader, + ) +@@ -206,8 +205,6 @@ + action='help', help='print this help text and exit') + general.add_option('-v', '--version', + action='version', help='print program version and exit') +- general.add_option('-U', '--update', +- action='store_true', dest='update_self', help='update this program to latest version. Make sure that you have sufficient permissions (run with sudo if needed)') + general.add_option('-i', '--ignore-errors', + action='store_true', dest='ignoreerrors', help='continue on download errors, for example to skip unavailable videos in a playlist', default=False) + general.add_option('--abort-on-error', +@@ -777,17 +774,6 @@ + if opts.xattrs: + ydl.add_post_processor(XAttrMetadataPP()) + +- # Update version +- if opts.update_self: +- update_self(ydl.to_screen, opts.verbose) +- +- # Maybe do nothing +- if (len(all_urls) < 1) and (opts.load_info_filename is None): +- if not opts.update_self: +- parser.error(u'you must provide at least one URL') +- else: +- sys.exit() +- + try: + if opts.load_info_filename is not None: + retcode = ydl.download_with_info_file(opts.load_info_filename) |