summary refs log tree commit diff
diff options
context:
space:
mode:
authorJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>2013-12-06 13:41:07 +0100
committerJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>2013-12-06 13:41:07 +0100
commit563e405411131628a6ea160c3fe2b2b4a883ac85 (patch)
treec28ac1dec79d00aaaedb527690624c335f5295ff
parentf53c966a73df42a9a949912ef8ab99a64fb99466 (diff)
downloadyoutube-dl-563e405411131628a6ea160c3fe2b2b4a883ac85.tar.gz
youtube-dl-563e405411131628a6ea160c3fe2b2b4a883ac85.tar.xz
youtube-dl-563e405411131628a6ea160c3fe2b2b4a883ac85.zip
[dailymotion] Fix view count regex
In some languages they can be in the format '123,456' instead of '123.456'
-rw-r--r--youtube_dl/extractor/dailymotion.py2
1 files changed, 1 insertions, 1 deletions
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,