mirror of
https://github.com/yt-dlp/yt-dlp
synced 2025-01-31 04:22:25 +01:00
Apply suggestions from code review
Co-authored-by: pukkandan <pukkandan.ytdlp@gmail.com>
This commit is contained in:
parent
e96d15b3ae
commit
3fd1ad6302
1 changed files with 2 additions and 2 deletions
|
@ -177,8 +177,8 @@ class SenateGovIE(SenateBaseIE):
|
||||||
display_id = self._generic_id(url)
|
display_id = self._generic_id(url)
|
||||||
webpage = self._download_webpage(url, display_id)
|
webpage = self._download_webpage(url, display_id)
|
||||||
iframe_src = self._search_regex(
|
iframe_src = self._search_regex(
|
||||||
(r'<iframe class="[^>"]*streaminghearing[^>"]*"\s[^>]*\bsrc="([^">]*)',
|
(r'<iframe class="[^>"]*streaminghearing[^>"]*"\s[^>]*\bsrc="([^>"]+)',
|
||||||
r'<iframe title="[^>"]*[^>"]*"\s[^>]*\bsrc="([^">]*)'),
|
r'<iframe title="[^>"]*"\s[^>]*\bsrc="([^">]+)'),
|
||||||
webpage, 'hearing URL').replace('&', '&')
|
webpage, 'hearing URL').replace('&', '&')
|
||||||
parse_info = parse_qs(iframe_src)
|
parse_info = parse_qs(iframe_src)
|
||||||
committee = parse_info['comm'][-1]
|
committee = parse_info['comm'][-1]
|
||||||
|
|
Loading…
Add table
Reference in a new issue