]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
[mixcloud] Fix extraction like-count
authorRoman Le Négrate <roman.lenegrate@gmail.com>
Sun, 15 Mar 2015 21:32:06 +0000 (22:32 +0100)
committerJaime Marquínez Ferrándiz <jaime.marquinez.ferrandiz@gmail.com>
Wed, 18 Mar 2015 15:30:29 +0000 (16:30 +0100)
youtube_dl/extractor/mixcloud.py

index 1831c6749401405c5a39ca60f4347df03bfe3631..7c6c885f9252742f29411240dd8ef406e10f637a 100644 (file)
@@ -99,8 +99,7 @@ class MixcloudIE(InfoExtractor):
             r'\s+"profile": "([^"]+)",', webpage, 'uploader id', fatal=False)
         description = self._og_search_description(webpage)
         like_count = str_to_int(self._search_regex(
-            [r'<meta itemprop="interactionCount" content="UserLikes:([0-9]+)"',
-             r'/favorites/?">([0-9]+)<'],
+            r'\bbutton-favorite\b.+m-ajax-toggle-count="([^"]+)"',
             webpage, 'like count', fatal=False))
         view_count = str_to_int(self._search_regex(
             [r'<meta itemprop="interactionCount" content="UserPlays:([0-9]+)"',