[infoq] Use _hidden_inputs instead of messy regex
This commit is contained in:
parent
31f5fc2c32
commit
11a8f1679b
@ -74,7 +74,8 @@ class InfoQIE(BokeCCBaseIE):
|
|||||||
}]
|
}]
|
||||||
|
|
||||||
def _extract_http_audio(self, webpage):
|
def _extract_http_audio(self, webpage):
|
||||||
http_audio_url = self._search_regex(r'<input[^>]*?name="filename"[^>]*?value="([^\"]+)"[^>]*?>', webpage, 'audio URL', fatal=False)
|
fields = self._hidden_inputs(webpage)
|
||||||
|
http_audio_url = fields['filename']
|
||||||
if http_audio_url is None:
|
if http_audio_url is None:
|
||||||
return []
|
return []
|
||||||
# base URL is found in the Location header in the response returned by
|
# base URL is found in the Location header in the response returned by
|
||||||
|
Loading…
x
Reference in New Issue
Block a user