Skip to content

Commit

Permalink
[ina] Add support for mobile URLs (#27229)
Browse files Browse the repository at this point in the history
  • Loading branch information
B0pol authored Nov 28, 2020
1 parent 9585b37 commit 717d1d2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion youtube_dl/extractor/ina.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@


class InaIE(InfoExtractor):
_VALID_URL = r'https?://(?:www\.)?ina\.fr/(?:video|audio)/(?P<id>[A-Z0-9_]+)'
_VALID_URL = r'https?://(?:(?:www|m)\.)?ina\.fr/(?:video|audio)/(?P<id>[A-Z0-9_]+)'
_TESTS = [{
'url': 'http://www.ina.fr/video/I12055569/francois-hollande-je-crois-que-c-est-clair-video.html',
'md5': 'a667021bf2b41f8dc6049479d9bb38a3',
Expand All @@ -31,6 +31,9 @@ class InaIE(InfoExtractor):
}, {
'url': 'https://www.ina.fr/video/P16173408-video.html',
'only_matching': True,
}, {
'url': 'http://m.ina.fr/video/I12055569',
'only_matching': True,
}]

def _real_extract(self, url):
Expand Down

0 comments on commit 717d1d2

Please sign in to comment.