moved increment_downloads and process_info calls from IEs to FD.download (#296) (follows current doclines); a small step towards importability #217
This commit is contained in:
parent
770234afa2
commit
58ca755f40
3 changed files with 208 additions and 336 deletions
|
@ -470,7 +470,13 @@ class FileDownloader(object):
|
|||
suitable_found = True
|
||||
|
||||
# Extract information from URL and process it
|
||||
ie.extract(url)
|
||||
videos = ie.extract(url)
|
||||
for video in videos or []:
|
||||
try:
|
||||
self.increment_downloads()
|
||||
self.process_info(video)
|
||||
except UnavailableVideoError:
|
||||
self.trouble(u'\nERROR: unable to download video')
|
||||
|
||||
# Suitable InfoExtractor had been found; go to next URL
|
||||
break
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue