Skip to content

Commit

Permalink
[dailymotion] Add support for lequipe.fr (closes #21328, closes #22152)
Browse files Browse the repository at this point in the history
  • Loading branch information
dstftw committed Aug 29, 2019
1 parent b500955 commit 9d058b3
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion youtube_dl/extractor/dailymotion.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,14 @@ def _download_webpage_no_ff(self, url, *args, **kwargs):


class DailymotionIE(DailymotionBaseInfoExtractor):
_VALID_URL = r'(?i)https?://(?:(www|touch)\.)?dailymotion\.[a-z]{2,3}/(?:(?:(?:embed|swf|#)/)?video|swf)/(?P<id>[^/?_]+)'
_VALID_URL = r'''(?ix)
https?://
(?:
(?:(?:www|touch)\.)?dailymotion\.[a-z]{2,3}/(?:(?:(?:embed|swf|\#)/)?video|swf)|
(?:www\.)?lequipe\.fr/video
)
/(?P<id>[^/?_]+)
'''
IE_NAME = 'dailymotion'

_FORMATS = [
Expand Down Expand Up @@ -133,6 +140,12 @@ class DailymotionIE(DailymotionBaseInfoExtractor):
}, {
'url': 'http://www.dailymotion.com/swf/x3ss1m_funny-magic-trick-barry-and-stuart_fun',
'only_matching': True,
}, {
'url': 'https://www.lequipe.fr/video/x791mem',
'only_matching': True,
}, {
'url': 'https://www.lequipe.fr/video/k7MtHciueyTcrFtFKA2',
'only_matching': True,
}]

@staticmethod
Expand Down

0 comments on commit 9d058b3

Please sign in to comment.