瀏覽代碼

[mixcloud] Fix extraction of like count (reported in #5231)

Jaime Marquínez Ferrándiz 10 年之前
父節點
當前提交
cd341b6e06
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      youtube_dl/extractor/mixcloud.py

+ 1 - 1
youtube_dl/extractor/mixcloud.py

@@ -97,7 +97,7 @@ class MixcloudIE(InfoExtractor):
             r'\s+"profile": "([^"]+)",', webpage, 'uploader id', fatal=False)
             r'\s+"profile": "([^"]+)",', webpage, 'uploader id', fatal=False)
         description = self._og_search_description(webpage)
         description = self._og_search_description(webpage)
         like_count = str_to_int(self._search_regex(
         like_count = str_to_int(self._search_regex(
-            r'\bbutton-favorite\b.+m-ajax-toggle-count="([^"]+)"',
+            r'\bbutton-favorite\b[^>]+m-ajax-toggle-count="([^"]+)"',
             webpage, 'like count', fatal=False))
             webpage, 'like count', fatal=False))
         view_count = str_to_int(self._search_regex(
         view_count = str_to_int(self._search_regex(
             [r'<meta itemprop="interactionCount" content="UserPlays:([0-9]+)"',
             [r'<meta itemprop="interactionCount" content="UserPlays:([0-9]+)"',