diff options
author | Jaime Marquínez Ferrándiz <[email protected]> | 2013-12-06 13:41:07 +0100 |
---|---|---|
committer | Jaime Marquínez Ferrándiz <[email protected]> | 2013-12-06 13:41:07 +0100 |
commit | 563e405411131628a6ea160c3fe2b2b4a883ac85 (patch) | |
tree | c28ac1dec79d00aaaedb527690624c335f5295ff | |
parent | f53c966a73df42a9a949912ef8ab99a64fb99466 (diff) | |
download | youtube-dl-563e405411131628a6ea160c3fe2b2b4a883ac85.tar.gz 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.py | 2 |
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, |