mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2025-02-06 18:20:02 +00:00
Condense comments, distribute
This commit is contained in:
parent
077bf26371
commit
0bdb0c707b
@ -17,22 +17,12 @@ from .generic import GenericIE
|
|||||||
# http://www.iqm2.com/About/Accela.aspx
|
# http://www.iqm2.com/About/Accela.aspx
|
||||||
# http://www.accela.com/
|
# http://www.accela.com/
|
||||||
|
|
||||||
# This processing makes it challenging to produce a test case for,
|
# This processing makes hard to test since there's only a narrow
|
||||||
# because the extractor will want to find the processed and easily
|
# window when it matters. After that the extractor finds links to
|
||||||
# downloadable version. So there may be interesting bugs during the
|
# the processed video intead.
|
||||||
# race condition time before the processed video is available (which
|
|
||||||
# is really the only time this extractor is especially important).
|
|
||||||
|
|
||||||
# This is also a relatively braindead extractor. It parses a given page like
|
# No metadata is retrieved, as that would require finding a metadata
|
||||||
# http://cambridgema.iqm2.com/Citizens/SplitView.aspx?Mode=Video&MeetingID=1679
|
# URL and retreiving a 3rd HTTP resource.
|
||||||
# to determine the location of an inner div defined by a URL of the form
|
|
||||||
# http://cambridgema.iqm2.com/Citizens/VideoScreen.aspx?MediaID=1563&Frame=SplitView
|
|
||||||
# and then feed it to the generic extractor.
|
|
||||||
|
|
||||||
# It appears that the metadata associated with the video (like its
|
|
||||||
# title) does not appear anywhere in the 2 HTML pages that get
|
|
||||||
# downloaded through this extractor. So it would need to download
|
|
||||||
# additional HTTP resources in order to get "real" metadata.
|
|
||||||
|
|
||||||
# Contributed by John Hawkinson <jhawk@mit.edu>, 6 Oct 2016.
|
# Contributed by John Hawkinson <jhawk@mit.edu>, 6 Oct 2016.
|
||||||
|
|
||||||
@ -61,8 +51,12 @@ class IQM2IE(InfoExtractor):
|
|||||||
|
|
||||||
# print "Original URL is", url
|
# print "Original URL is", url
|
||||||
|
|
||||||
# <div id="VideoPanel" class="LeftTopContent">
|
# Simple extractor: take, e.g.
|
||||||
# <div id="VideoPanelInner" ... src="/Citizens/VideoScreen.aspx?MediaID=1563&Frame=SplitView">
|
# http://cambridgema.iqm2.com/Citizens/SplitView.aspx?Mode=Video&MeetingID=1679
|
||||||
|
# and look for
|
||||||
|
# <div id="VideoPanel" class="LeftTopContent">
|
||||||
|
# <div id="VideoPanelInner" ... src="/Citizens/VideoScreen.aspx?MediaID=1563&Frame=SplitView">
|
||||||
|
# and feed the canonicalized src element to the generic extractor
|
||||||
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');
|
webpage, 'url');
|
||||||
|
Loading…
Reference in New Issue
Block a user