1
0
Fork 0
mirror of https://github.com/yt-dlp/yt-dlp synced 2025-01-18 23:03:05 +01:00

Apply suggestions from code review

Co-authored-by: pukkandan <pukkandan.ytdlp@gmail.com>
This commit is contained in:
sepro 2025-01-15 19:23:59 +01:00 committed by GitHub
parent e96d15b3ae
commit 3fd1ad6302
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -177,8 +177,8 @@ class SenateGovIE(SenateBaseIE):
display_id = self._generic_id(url)
webpage = self._download_webpage(url, display_id)
iframe_src = self._search_regex(
(r'<iframe class="[^>"]*streaminghearing[^>"]*"\s[^>]*\bsrc="([^">]*)',
r'<iframe title="[^>"]*[^>"]*"\s[^>]*\bsrc="([^">]*)'),
(r'<iframe class="[^>"]*streaminghearing[^>"]*"\s[^>]*\bsrc="([^>"]+)',
r'<iframe title="[^>"]*"\s[^>]*\bsrc="([^">]+)'),
webpage, 'hearing URL').replace('&amp;', '&')
parse_info = parse_qs(iframe_src)
committee = parse_info['comm'][-1]