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:
parent
6f919d74c4
commit
0a2d66088c
@ -78,7 +78,7 @@ class IQM2IE(JWPlatformBaseIE):
|
|||||||
|
|
||||||
def _real_extract(self, url):
|
def _real_extract(self, url):
|
||||||
parent_id = self._match_id(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.
|
# Take, e.g.
|
||||||
# http://cambridgema.iqm2.com/Citizens/SplitView.aspx?Mode=Video&MeetingID=1679
|
# 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
|
# and then parse the canonicalized src element
|
||||||
inner_url_rel = self._html_search_regex(
|
inner_url_rel = self._html_search_regex(
|
||||||
r'<div id="VideoPanelInner".*src="([^"]+)"',
|
r'<div id="VideoPanelInner".*src="([^"]+)"',
|
||||||
webpage, 'url');
|
parent_page, 'url');
|
||||||
|
|
||||||
inner_url = compat_urlparse.urljoin(url, inner_url_rel)
|
inner_url = compat_urlparse.urljoin(url, inner_url_rel)
|
||||||
mobj = re.match(
|
mobj = re.match(
|
||||||
|
Loading…
Reference in New Issue
Block a user