mirror of
https://github.com/blackjack4494/yt-dlc.git
synced 2024-09-12 04:22:35 +02:00
Only skip download if files exists; convert audio
This commit is contained in:
parent
ba5059dd66
commit
a5647b79ce
@ -759,10 +759,6 @@ class FileDownloader(object):
|
||||
if filename is None:
|
||||
return
|
||||
|
||||
if self.params.get('nooverwrites', False) and os.path.exists(filename):
|
||||
self.to_stderr(u'WARNING: file exists and will be skipped')
|
||||
return
|
||||
|
||||
try:
|
||||
dn = os.path.dirname(filename)
|
||||
if dn != '' and not os.path.exists(dn):
|
||||
@ -804,6 +800,9 @@ class FileDownloader(object):
|
||||
return
|
||||
|
||||
if not self.params.get('skip_download', False):
|
||||
if self.params.get('nooverwrites', False) and os.path.exists(filename):
|
||||
success = True
|
||||
else:
|
||||
try:
|
||||
success = self._do_download(filename, info_dict)
|
||||
except (OSError, IOError), err:
|
||||
|
Loading…
Reference in New Issue
Block a user