Explorar o código

[dailymotion] Fix view count regex

In some languages they can be in the format '123,456' instead of '123.456'
Jaime Marquínez Ferrándiz %!s(int64=12) %!d(string=hai) anos
pai
achega
563e405411
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      youtube_dl/extractor/dailymotion.py

+ 1 - 1
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,