|
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) |