From 20b2a5596886dc8d95cef1cc248fe22a6e2c2143 Mon Sep 17 00:00:00 2001 From: Jonathon Padfield Date: Sun, 26 Feb 2012 11:00:52 +1100 Subject: [PATCH] Loosened regex on DailyMotion videos to allow for matching of private video urls. --- youtube-dl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/youtube-dl b/youtube-dl index e3710a8db..07be181f0 100755 --- a/youtube-dl +++ b/youtube-dl @@ -1593,7 +1593,7 @@ class MetacafeIE(InfoExtractor): class DailymotionIE(InfoExtractor): """Information Extractor for Dailymotion""" - _VALID_URL = r'(?i)(?:https?://)?(?:www\.)?dailymotion\.[a-z]{2,3}/video/([^_/]+)_([^/]+)' + _VALID_URL = r'(?i)(?:https?://)?(?:www\.)?dailymotion\.[a-z]{2,3}/video/(.+)' IE_NAME = u'dailymotion' def __init__(self, downloader=None): @@ -1608,7 +1608,7 @@ class DailymotionIE(InfoExtractor): self._downloader.to_screen(u'[dailymotion] %s: Extracting information' % video_id) def _real_extract(self, url): - # Extract id and simplified title from URL + # Extract id mobj = re.match(self._VALID_URL, url) if mobj is None: self._downloader.trouble(u'ERROR: invalid URL: %s' % url)