pukkandan
2022-03-05 02:24:17 +05:30
parent 72e995f122
commit 50e93e03a7
21 changed files with 621 additions and 140 deletions
+4 -5
View File
@@ -111,7 +111,6 @@ class VideaIE(InfoExtractor):
def _real_extract(self, url):
video_id = self._match_id(url)
video_page = self._download_webpage(url, video_id)
if 'videa.hu/player' in url:
@@ -146,7 +145,7 @@ class VideaIE(InfoExtractor):
compat_b64decode(b64_info), key), video_id)
video = xpath_element(info, './video', 'video')
if not video:
if video is None:
raise ExtractorError(xpath_element(
info, './error', fatal=True), expected=True)
sources = xpath_element(
@@ -163,9 +162,9 @@ class VideaIE(InfoExtractor):
source_exp = source.get('exp')
if not (source_url and source_name):
continue
hash_value = None
if hash_values:
hash_value = xpath_text(hash_values, 'hash_value_' + source_name)
hash_value = (
xpath_text(hash_values, 'hash_value_' + source_name)
if hash_values is not None else None)
if hash_value and source_exp:
source_url = update_url_query(source_url, {
'md5': hash_value,