Skip to content

Commit

Permalink
[ie/senategov] URL parsing fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Grabien committed Mar 20, 2024
1 parent 2f54918 commit 974babf
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions yt_dlp/extractor/senategov.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,10 +176,11 @@ class SenateGovIE(InfoExtractor):
def _real_extract(self, url):
display_id = self._generic_id(url)
webpage = self._download_webpage(url, display_id)
parse_info = parse_qs(self._search_regex(
iframe_src = self._search_regex(
(r'<iframe class="[^>"]*streaminghearing[^>"]*"\s[^>]*\bsrc="([^">]*)',
r'<iframe title="[^>"]*[^>"]*"\s[^>]*\bsrc="([^">]*)'),
webpage, 'hearing URL'))
webpage, 'hearing URL').replace('&amp;', '&')
parse_info = parse_qs(iframe_src)
comm = parse_info['comm'][-1]
stream_num, stream_domain, stream_id, msl3 = _COMMITTEES[comm]
filename = parse_info['filename'][-1]
Expand Down

0 comments on commit 974babf

Please sign in to comment.