From: Jaime Marquínez Ferrándiz Date: Fri, 6 Dec 2013 12:41:07 +0000 (+0100) Subject: [dailymotion] Fix view count regex X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=563e405411131628a6ea160c3fe2b2b4a883ac85;p=youtube-dl [dailymotion] Fix view count regex In some languages they can be in the format '123,456' instead of '123.456' --- diff --git a/youtube_dl/extractor/dailymotion.py b/youtube_dl/extractor/dailymotion.py index 3756cf765..3bd0b862c 100644 --- a/youtube_dl/extractor/dailymotion.py +++ b/youtube_dl/extractor/dailymotion.py @@ -148,7 +148,7 @@ class DailymotionIE(DailymotionBaseInfoExtractor, SubtitlesInfoExtractor): return view_count = str_to_int(self._search_regex( - r'video_views_value[^>]+>([\d\.]+)<', webpage, u'view count')) + r'video_views_value[^>]+>([\d\.,]+)<', webpage, u'view count')) return { 'id': video_id,