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

pull/5351/merge
Jaime Marquínez Ferrándiz 2015-04-03 19:37:35 +02:00
parent ff2be6e180
commit cd341b6e06
1 changed files with 1 additions and 1 deletions

View File

@ -97,7 +97,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'\bbutton-favorite\b.+m-ajax-toggle-count="([^"]+)"',
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]+)"',