浏览代码

[giga] Fix view count extraction

Sergey M․ 10 年之前
父节点
当前提交
6a8f9cd22e
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. 2 1
      youtube_dl/extractor/giga.py

+ 2 - 1
youtube_dl/extractor/giga.py

@@ -85,7 +85,8 @@ class GigaIE(InfoExtractor):
             r'class="author">([^<]+)</a>', webpage, 'uploader', fatal=False)
             r'class="author">([^<]+)</a>', webpage, 'uploader', fatal=False)
 
 
         view_count = str_to_int(self._search_regex(
         view_count = str_to_int(self._search_regex(
-            r'<span class="views"><strong>([\d.]+)</strong>', webpage, 'view count', fatal=False))
+            r'<span class="views"><strong>([\d.,]+)</strong>',
+            webpage, 'view count', fatal=False))
 
 
         return {
         return {
             'id': video_id,
             'id': video_id,