[dailymotion] Fix view count regex
authorJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>
Fri, 6 Dec 2013 12:41:07 +0000 (13:41 +0100)
committerJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>
Fri, 6 Dec 2013 12:41:07 +0000 (13:41 +0100)
In some languages they can be in the format '123,456' instead of '123.456'

youtube_dl/extractor/dailymotion.py

index 3756cf76525a135b35b0260f0209cded74858787..3bd0b862c6551c8f40207f62db2daf964621db47 100644 (file)
@@ -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,