1
1
mirror of https://github.com/ytdl-org/youtube-dl synced 2024-12-24 21:45:51 +01:00

[ina] Improve _VALID_URL regex (fixes #2328)

Accept all letters in upper case and don’t require anything after the id
This commit is contained in:
Jaime Marquínez Ferrándiz 2014-02-05 23:01:24 +01:00
parent 211e17dd43
commit d8061908bb

View File

@ -7,7 +7,7 @@ from .common import InfoExtractor
class InaIE(InfoExtractor): class InaIE(InfoExtractor):
_VALID_URL = r'http://(?:www\.)?ina\.fr/video/(?P<id>I?[A-F0-9]+)/.*' _VALID_URL = r'http://(?:www\.)?ina\.fr/video/(?P<id>I?[A-Z0-9]+)'
_TEST = { _TEST = {
'url': 'http://www.ina.fr/video/I12055569/francois-hollande-je-crois-que-c-est-clair-video.html', 'url': 'http://www.ina.fr/video/I12055569/francois-hollande-je-crois-que-c-est-clair-video.html',
'md5': 'a667021bf2b41f8dc6049479d9bb38a3', 'md5': 'a667021bf2b41f8dc6049479d9bb38a3',