From 563e405411131628a6ea160c3fe2b2b4a883ac85 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jaime=20Marqui=CC=81nez=20Ferra=CC=81ndiz?= Date: Fri, 6 Dec 2013 13:41:07 +0100 Subject: [PATCH] [dailymotion] Fix view count regex In some languages they can be in the format '123,456' instead of '123.456' --- youtube_dl/extractor/dailymotion.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, -- 2.22.2