From 0647084f394ddbe440b012bdf30e1a4e00dcbebe Mon Sep 17 00:00:00 2001 From: Tailszefox Date: Tue, 16 Dec 2014 15:46:04 +0100 Subject: [PATCH 1/2] [Allocine] Support for more URLs --- youtube_dl/extractor/allocine.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/youtube_dl/extractor/allocine.py b/youtube_dl/extractor/allocine.py index 623aeaf34..023e06fc6 100644 --- a/youtube_dl/extractor/allocine.py +++ b/youtube_dl/extractor/allocine.py @@ -12,7 +12,7 @@ from ..utils import ( class AllocineIE(InfoExtractor): - _VALID_URL = r'https?://(?:www\.)?allocine\.fr/(?Particle|video|film)/(fichearticle_gen_carticle=|player_gen_cmedia=|fichefilm_gen_cfilm=)(?P[0-9]+)(?:\.html)?' + _VALID_URL = r'https?://(?:www\.)?allocine\.fr/(?Particle|video|film)/(fichearticle_gen_carticle=|player_gen_cmedia=|fichefilm_gen_cfilm=|video-)(?P[0-9]+)(?:\.html)?' _TESTS = [{ 'url': 'http://www.allocine.fr/article/fichearticle_gen_carticle=18635087.html', From 9209fe38784dbb4d4c045537919f3dc50e02227a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergey=20M=E2=80=A4?= Date: Tue, 16 Dec 2014 21:03:10 +0600 Subject: [PATCH 2/2] [allocine] Add test for new URL format --- youtube_dl/extractor/allocine.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/youtube_dl/extractor/allocine.py b/youtube_dl/extractor/allocine.py index 023e06fc6..7d65b8193 100644 --- a/youtube_dl/extractor/allocine.py +++ b/youtube_dl/extractor/allocine.py @@ -44,6 +44,9 @@ class AllocineIE(InfoExtractor): 'description': 'md5:71742e3a74b0d692c7fce0dd2017a4ac', 'thumbnail': 're:http://.*\.jpg', }, + }, { + 'url': 'http://www.allocine.fr/video/video-19550147/', + 'only_matching': True, }] def _real_extract(self, url):