freebsd-ports/www/youtube_dl/files/patch-youtube_dl____init__.py
Marcelo Araujo ac1c282341 - Update to 2016.04.24.
- Regenerate patches.

PR:		ports/209140
Submitted by:	cpm
2016-04-29 00:54:14 +00:00

29 lines
850 B
Python

--- youtube_dl/__init__.py.orig 2016-04-28 23:05:35 UTC
+++ youtube_dl/__init__.py
@@ -36,7 +36,6 @@ from .utils import (
std_headers,
write_string,
)
-from .update import update_self
from .downloader import (
FileDownloader,
)
@@ -384,17 +383,13 @@ def _real_main(argv=None):
}
with YoutubeDL(ydl_opts) as ydl:
- # Update version
- if opts.update_self:
- update_self(ydl.to_screen, opts.verbose, ydl._opener)
-
# Remove cache dir
if opts.rm_cachedir:
ydl.cache.remove()
# Maybe do nothing
if (len(all_urls) < 1) and (opts.load_info_filename is None):
- if opts.update_self or opts.rm_cachedir:
+ if opts.rm_cachedir:
sys.exit()
ydl.warn_if_short_id(sys.argv[1:] if argv is None else argv)