Do not check for self._downloader being None in several places
parent
73f4e7afba
commit
9bf7fa5213
|
@ -1043,7 +1043,6 @@ class MetacafeIE(InfoExtractor):
|
||||||
return
|
return
|
||||||
|
|
||||||
# At this point we have a new video
|
# At this point we have a new video
|
||||||
if self._downloader is not None:
|
|
||||||
self._downloader.increment_downloads()
|
self._downloader.increment_downloads()
|
||||||
|
|
||||||
simple_title = mobj.group(2).decode('utf-8')
|
simple_title = mobj.group(2).decode('utf-8')
|
||||||
|
@ -1136,7 +1135,6 @@ class DailymotionIE(InfoExtractor):
|
||||||
return
|
return
|
||||||
|
|
||||||
# At this point we have a new video
|
# At this point we have a new video
|
||||||
if self._downloader is not None:
|
|
||||||
self._downloader.increment_downloads()
|
self._downloader.increment_downloads()
|
||||||
video_id = mobj.group(1)
|
video_id = mobj.group(1)
|
||||||
|
|
||||||
|
@ -1224,7 +1222,6 @@ class GoogleIE(InfoExtractor):
|
||||||
return
|
return
|
||||||
|
|
||||||
# At this point we have a new video
|
# At this point we have a new video
|
||||||
if self._downloader is not None:
|
|
||||||
self._downloader.increment_downloads()
|
self._downloader.increment_downloads()
|
||||||
video_id = mobj.group(1)
|
video_id = mobj.group(1)
|
||||||
|
|
||||||
|
@ -1335,7 +1332,6 @@ class PhotobucketIE(InfoExtractor):
|
||||||
return
|
return
|
||||||
|
|
||||||
# At this point we have a new video
|
# At this point we have a new video
|
||||||
if self._downloader is not None:
|
|
||||||
self._downloader.increment_downloads()
|
self._downloader.increment_downloads()
|
||||||
video_id = mobj.group(1)
|
video_id = mobj.group(1)
|
||||||
|
|
||||||
|
@ -1420,7 +1416,6 @@ class YahooIE(InfoExtractor):
|
||||||
return
|
return
|
||||||
|
|
||||||
# At this point we have a new video
|
# At this point we have a new video
|
||||||
if self._downloader is not None and new_video:
|
|
||||||
self._downloader.increment_downloads()
|
self._downloader.increment_downloads()
|
||||||
video_id = mobj.group(2)
|
video_id = mobj.group(2)
|
||||||
video_extension = 'flv'
|
video_extension = 'flv'
|
||||||
|
@ -1568,7 +1563,6 @@ class GenericIE(InfoExtractor):
|
||||||
|
|
||||||
def _real_extract(self, url):
|
def _real_extract(self, url):
|
||||||
# At this point we have a new video
|
# At this point we have a new video
|
||||||
if self._downloader is not None:
|
|
||||||
self._downloader.increment_downloads()
|
self._downloader.increment_downloads()
|
||||||
|
|
||||||
video_id = url.split('/')[-1]
|
video_id = url.split('/')[-1]
|
||||||
|
|
Loading…
Reference in New Issue