[KeezMovies] Applied fourth requested fixes for PR #16154
This commit is contained in:
parent
e643b7ebf5
commit
3275d01b74
@ -107,11 +107,9 @@ class KeezMoviesIE(InfoExtractor):
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
self._sort_formats(formats)
|
self._sort_formats(formats)
|
||||||
except ExtractorError as e:
|
except ExtractorError:
|
||||||
if fatal:
|
if fatal:
|
||||||
raise ExtractorError(e, expected=True)
|
raise
|
||||||
else:
|
|
||||||
self._downloader.report_warning(e)
|
|
||||||
|
|
||||||
if not title:
|
if not title:
|
||||||
title = self._html_search_regex(
|
title = self._html_search_regex(
|
||||||
@ -130,9 +128,7 @@ class KeezMoviesIE(InfoExtractor):
|
|||||||
def _real_extract(self, url):
|
def _real_extract(self, url):
|
||||||
webpage, info = self._extract_info(url, fatal=False)
|
webpage, info = self._extract_info(url, fatal=False)
|
||||||
if not info['formats']:
|
if not info['formats']:
|
||||||
embed_url = self._search_regex(
|
return self.url_result(url, 'Generic')
|
||||||
r'<iframe\s+id="embedPlayer"\s+src="//(.+?)"', webpage, 'embed url', default=None)
|
|
||||||
return self.url_result(embed_url or url, 'Generic')
|
|
||||||
info['view_count'] = str_to_int(self._search_regex(
|
info['view_count'] = str_to_int(self._search_regex(
|
||||||
r'<b>([\d,.]+)</b> Views?', webpage, 'view count', fatal=False))
|
r'<b>([\d,.]+)</b> Views?', webpage, 'view count', fatal=False))
|
||||||
return info
|
return info
|
||||||
|
Loading…
x
Reference in New Issue
Block a user