1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2024-07-06 08:01:06 +02:00

[mixcloud] Fix extraction like-count

This commit is contained in:
Roman Le Négrate 2015-03-15 22:32:06 +01:00 committed by Jaime Marquínez Ferrándiz
parent 2c2c06e359
commit fa8ce26904

View File

@ -99,8 +99,7 @@ def _real_extract(self, url):
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]+)"',