View | Details | Raw Unified | Return to bug 192578
Collapse All | Expand All

(-)Makefile (-2 / +2 lines)
Lines 1-7 Link Here
1
# $FreeBSD$
1
# $FreeBSD$
2
2
3
PORTNAME=	youtube_dl
3
PORTNAME=	youtube_dl
4
PORTVERSION=	2014.07.21
4
PORTVERSION=	2014.08.10
5
CATEGORIES=	www
5
CATEGORIES=	www
6
MASTER_SITES=	https://yt-dl.org/downloads/${PORTVERSION}/
6
MASTER_SITES=	https://yt-dl.org/downloads/${PORTVERSION}/
7
DISTNAME=	youtube-dl-${PORTVERSION}
7
DISTNAME=	youtube-dl-${PORTVERSION}
Lines 16-22 Link Here
16
16
17
BUILD_DEPENDS=	zip:${PORTSDIR}/archivers/zip
17
BUILD_DEPENDS=	zip:${PORTSDIR}/archivers/zip
18
18
19
USE_PYTHON_RUN=	2
19
USES=		python:run,2
20
ALL_TARGET=	youtube-dl
20
ALL_TARGET=	youtube-dl
21
21
22
OPTIONS_DEFINE=	BASH RTMPDUMP FFMPEG
22
OPTIONS_DEFINE=	BASH RTMPDUMP FFMPEG
(-)distinfo (-2 / +2 lines)
Lines 1-2 Link Here
1
SHA256 (youtube-dl-2014.07.21.tar.gz) = 63b48fdb32a6e28f3dcb8928e0f372d8e2ea1eb4216f063394f0b6d64955cee4
1
SHA256 (youtube-dl-2014.08.10.tar.gz) = a1131ff8aa636b6e99baf1b6226dab137500cd0a5cdeb4d76db102be4138caa9
2
SIZE (youtube-dl-2014.07.21.tar.gz) = 906769
2
SIZE (youtube-dl-2014.08.10.tar.gz) = 931916
(-)files/patch-youtube_dl____init__.py (-18 / +11 lines)
Lines 1-14 Link Here
1
--- ./youtube_dl/__init__.py.orig	2014-02-25 09:29:35.000000000 +0000
1
--- ./youtube_dl/__init__.py.orig	2014-08-10 16:14:56.618431081 +0300
2
+++ ./youtube_dl/__init__.py	2014-02-25 09:29:49.000000000 +0000
2
+++ ./youtube_dl/__init__.py	2014-08-10 16:15:27.887429005 +0300
3
@@ -76,7 +76,6 @@
3
@@ -98,7 +98,6 @@
4
     std_headers,
4
     std_headers,
5
     write_string,
5
     write_string,
6
 )
6
 )
7
-from .update import update_self
7
-from .update import update_self
8
 from .FileDownloader import (
8
 from .downloader import (
9
     FileDownloader,
9
     FileDownloader,
10
 )
10
 )
11
@@ -206,8 +205,6 @@
11
@@ -231,8 +230,6 @@
12
             action='help', help='print this help text and exit')
12
             action='help', help='print this help text and exit')
13
     general.add_option('-v', '--version',
13
     general.add_option('-v', '--version',
14
             action='version', help='print program version and exit')
14
             action='version', help='print program version and exit')
Lines 17-37 Link Here
17
     general.add_option('-i', '--ignore-errors',
17
     general.add_option('-i', '--ignore-errors',
18
             action='store_true', dest='ignoreerrors', help='continue on download errors, for example to skip unavailable videos in a playlist', default=False)
18
             action='store_true', dest='ignoreerrors', help='continue on download errors, for example to skip unavailable videos in a playlist', default=False)
19
     general.add_option('--abort-on-error',
19
     general.add_option('--abort-on-error',
20
@@ -777,17 +774,6 @@
20
@@ -845,10 +842,6 @@
21
         if opts.xattrs:
21
                 ydl.add_post_processor(FFmpegAudioFixPP())
22
             ydl.add_post_processor(XAttrMetadataPP())
22
             ydl.add_post_processor(AtomicParsleyPP())
23
 
23
 
24
-        # Update version
24
-        # Update version
25
-        if opts.update_self:
25
-        if opts.update_self:
26
-            update_self(ydl.to_screen, opts.verbose)
26
-            update_self(ydl.to_screen, opts.verbose)
27
-
27
-
28
-        # Maybe do nothing
28
         # Remove cache dir
29
-        if (len(all_urls) < 1) and (opts.load_info_filename is None):
29
         if opts.rm_cachedir:
30
-            if not opts.update_self:
30
             if opts.cachedir is None:
31
-                parser.error(u'you must provide at least one URL')
32
-            else:
33
-                sys.exit()
34
-
35
         try:
36
             if opts.load_info_filename is not None:
37
                 retcode = ydl.download_with_info_file(opts.load_info_filename)

Return to bug 192578