[ceskatelevize] fix a small error in error handling code
Duh. InfoExtractor._report_warning isn't a thing.
This commit is contained in:
parent
4bdf3c4066
commit
3faf928475
@ -108,7 +108,7 @@ class CeskaTelevizeIE(InfoExtractor):
|
|||||||
elif qs_dict.get('IDEC'):
|
elif qs_dict.get('IDEC'):
|
||||||
playlist_id = qs_dict['IDEC'][0]
|
playlist_id = qs_dict['IDEC'][0]
|
||||||
else:
|
else:
|
||||||
self.report_warning("Could not extract ID from iFramePlayer URL %s" % url)
|
self._downloader.report_warning("Could not extract ID from iFramePlayer URL %s" % url)
|
||||||
|
|
||||||
webpage = self._download_webpage(url, playlist_id)
|
webpage = self._download_webpage(url, playlist_id)
|
||||||
|
|
||||||
@ -117,7 +117,7 @@ class CeskaTelevizeIE(InfoExtractor):
|
|||||||
raise ExtractorError(NOT_AVAILABLE_STRING, expected=True)
|
raise ExtractorError(NOT_AVAILABLE_STRING, expected=True)
|
||||||
if 'Neplatný kód pro videopřehrávač' in webpage:
|
if 'Neplatný kód pro videopřehrávač' in webpage:
|
||||||
if retries < 1:
|
if retries < 1:
|
||||||
self._report_warning('Invalid code on the page, retrying...')
|
self._downloader._report_warning('Invalid code on the page, retrying...')
|
||||||
time.sleep(15)
|
time.sleep(15)
|
||||||
return self._real_extract(url, retries + 1)
|
return self._real_extract(url, retries + 1)
|
||||||
else:
|
else:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user