Skip to content

Commit

Permalink
[vk] fix wall audio thumbnails extraction(closes #23135)
Browse files Browse the repository at this point in the history
  • Loading branch information
remitamine committed Nov 18, 2019
1 parent 9e4e864 commit 7e70620
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions youtube_dl/extractor/vk.py
Original file line number Diff line number Diff line change
Expand Up @@ -634,14 +634,15 @@ def _real_extract(self, url):
if not a.url:
continue
title = unescapeHTML(a.title)
performer = unescapeHTML(a.performer)
entries.append({
'id': '%s_%s' % (a.owner_id, a.id),
'url': self._unmask_url(a.url, a.ads['vk_id']),
'title': '%s - %s' % (a.performer, title) if a.performer else title,
'thumbnail': a.cover_url.split(',') if a.cover_url else None,
'duration': a.duration,
'title': '%s - %s' % (performer, title) if performer else title,
'thumbnails': [{'url': c_url} for c_url in a.cover_url.split(',')] if a.cover_url else None,
'duration': int_or_none(a.duration),
'uploader': uploader,
'artist': a.performer,
'artist': performer,
'track': title,
'ext': 'mp4',
'protocol': 'm3u8',
Expand Down

0 comments on commit 7e70620

Please sign in to comment.