diff options
author | Philipp Hagemeister <phihag@phihag.de> | 2013-08-21 04:32:22 +0200 |
---|---|---|
committer | Philipp Hagemeister <phihag@phihag.de> | 2013-08-21 04:32:22 +0200 |
commit | 7fea7156cb41d4706059174f1fd00faa02278c8c (patch) | |
tree | b5152f11fc8391c76f9c9b7aa1f056eb57ad0927 | |
parent | 3093468977e5c04d7f39016bbe983c483e47707f (diff) |
[generic] support HTML5 video
-rw-r--r-- | youtube_dl/extractor/generic.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/youtube_dl/extractor/generic.py b/youtube_dl/extractor/generic.py index 1c468f8f6..da016f7ee 100644 --- a/youtube_dl/extractor/generic.py +++ b/youtube_dl/extractor/generic.py @@ -150,6 +150,9 @@ class GenericIE(InfoExtractor): if m_video_type is not None: mobj = re.search(r'<meta.*?property="og:video".*?content="(.*?)"', webpage) if mobj is None: + # HTML5 video + mobj = re.search(r'<video[^<]*>.*?<source .*?src="([^"]+)"', webpage, flags=re.DOTALL) + if mobj is None: raise ExtractorError(u'Invalid URL: %s' % url) # It's possible that one of the regexes |