diff options
author | Yen Chi Hsuan <yan12125@gmail.com> | 2016-06-24 17:26:12 +0800 |
---|---|---|
committer | Yen Chi Hsuan <yan12125@gmail.com> | 2016-06-24 17:26:12 +0800 |
commit | 896cc727508f1d1054d88405c64e731c4d5c4ce4 (patch) | |
tree | aff1f7e25ab134f7637a01c5f0437cb1f40d5389 | |
parent | c1ff6e1ad08c781ce1d486ddb7389fe90c79af35 (diff) |
[mixcloud] View count and like count may be absent
Closes #9874
-rw-r--r-- | youtube_dl/extractor/mixcloud.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/youtube_dl/extractor/mixcloud.py b/youtube_dl/extractor/mixcloud.py index 483f6925f..560fe188b 100644 --- a/youtube_dl/extractor/mixcloud.py +++ b/youtube_dl/extractor/mixcloud.py @@ -102,11 +102,11 @@ class MixcloudIE(InfoExtractor): description = self._og_search_description(webpage) like_count = parse_count(self._search_regex( r'\bbutton-favorite[^>]+>.*?<span[^>]+class=["\']toggle-number[^>]+>\s*([^<]+)', - webpage, 'like count', fatal=False)) + webpage, 'like count', default=None)) view_count = str_to_int(self._search_regex( [r'<meta itemprop="interactionCount" content="UserPlays:([0-9]+)"', r'/listeners/?">([0-9,.]+)</a>'], - webpage, 'play count', fatal=False)) + webpage, 'play count', default=None)) return { 'id': track_id, |