1
0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2025-02-06 18:20:02 +00:00

[iqm2] don't reuse webpage var twice

This commit is contained in:
John Hawkinson 2017-01-24 00:45:34 -05:00
parent 6f919d74c4
commit 0a2d66088c

View File

@ -78,7 +78,7 @@ class IQM2IE(JWPlatformBaseIE):
def _real_extract(self, url):
parent_id = self._match_id(url)
webpage = self._download_webpage(url, parent_id)
parent_page = self._download_webpage(url, parent_id)
# Take, e.g.
# http://cambridgema.iqm2.com/Citizens/SplitView.aspx?Mode=Video&MeetingID=1679
@ -88,7 +88,7 @@ class IQM2IE(JWPlatformBaseIE):
# and then parse the canonicalized src element
inner_url_rel = self._html_search_regex(
r'<div id="VideoPanelInner".*src="([^"]+)"',
webpage, 'url');
parent_page, 'url');
inner_url = compat_urlparse.urljoin(url, inner_url_rel)
mobj = re.match(