commit: 563e405411131628a6ea160c3fe2b2b4a883ac85
parent f53c966a73df42a9a949912ef8ab99a64fb99466
Author: Jaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>
Date: Fri, 6 Dec 2013 13:41:07 +0100
[dailymotion] Fix view count regex
In some languages they can be in the format '123,456' instead of '123.456'
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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,