use self.to_screen but only if --verbose
This commit is contained in:
parent
7cb0fb6cec
commit
93f380e426
@ -1005,7 +1005,8 @@ class GenericIE(InfoExtractor):
|
|||||||
if notbefore_blacklist.get(ie.IE_NAME,False) == True:
|
if notbefore_blacklist.get(ie.IE_NAME,False) == True:
|
||||||
continue
|
continue
|
||||||
if ie.suitable(u):
|
if ie.suitable(u):
|
||||||
print (' EMBED ['+ie.IE_NAME+'] '+u)
|
if self._downloader.params.get('verbose', False):
|
||||||
|
self.to_screen('EMBED [%s] %s' % (ie.IE_NAME, u))
|
||||||
found = True
|
found = True
|
||||||
elist.append({
|
elist.append({
|
||||||
'_type': 'url',
|
'_type': 'url',
|
||||||
@ -1014,10 +1015,11 @@ class GenericIE(InfoExtractor):
|
|||||||
})
|
})
|
||||||
break
|
break
|
||||||
if not found:
|
if not found:
|
||||||
#self._downloader.params.get('verbose', False):
|
if self._downloader.params.get('verbose', False):
|
||||||
print (' EMBED [-none-] '+u)
|
self.to_screen('EMBED [-none-] %s' % (u))
|
||||||
if elist:
|
if elist:
|
||||||
print(''+str(len(elist))+' embeds')
|
if self._downloader.params.get('verbose', False):
|
||||||
|
self.to_screen('Will download %s embeds.' % str(len(elist)))
|
||||||
return elist
|
return elist
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user