mirror of
https://github.com/l1ving/youtube-dl
synced 2026-06-08 01:03:33 +08:00
[dailymotion] Add support for URLs starting with //
This will happen if a site embeds dailymotion like this:
<iframe src="//www.dailymotion.com/embed/ [...]
in order to be compatible with both http and https and prevent mixed
content blocking.
It will be detected by the generic extractor, but then fail to be
accepted by the information extractor.
This protocol matching should probably be extended to other extractors
(although vimeo and youtube extractor already do this)
This commit is contained in:
@@ -27,7 +27,7 @@ class DailymotionBaseInfoExtractor(InfoExtractor):
|
||||
class DailymotionIE(DailymotionBaseInfoExtractor, SubtitlesInfoExtractor):
|
||||
"""Information Extractor for Dailymotion"""
|
||||
|
||||
_VALID_URL = r'(?i)(?:https?://)?(?:(www|touch)\.)?dailymotion\.[a-z]{2,3}/(?:(embed|#)/)?video/(?P<id>[^/?_]+)'
|
||||
_VALID_URL = r'(?i)(?:(?:https?:)?//)?(?:(www|touch)\.)?dailymotion\.[a-z]{2,3}/(?:(embed|#)/)?video/(?P<id>[^/?_]+)'
|
||||
IE_NAME = u'dailymotion'
|
||||
|
||||
_FORMATS = [
|
||||
|
||||
Reference in New Issue
Block a user