projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
9e4e864
)
[vk] fix wall audio thumbnails extraction(closes #23135)
author
Remita Amine
<remitamine@gmail.com>
Mon, 18 Nov 2019 11:51:25 +0000
(12:51 +0100)
committer
Remita Amine
<remitamine@gmail.com>
Mon, 18 Nov 2019 11:51:25 +0000
(12:51 +0100)
youtube_dl/extractor/vk.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/vk.py
b/youtube_dl/extractor/vk.py
index 4c8ca4f41c658d29b293fb47381f74f3dbc17991..1958759382711e27ff5f7eaa70fa74e400d274cc 100644
(file)
--- a/
youtube_dl/extractor/vk.py
+++ b/
youtube_dl/extractor/vk.py
@@
-634,14
+634,15
@@
class VKWallPostIE(VKBaseIE):
if not a.url:
continue
title = unescapeHTML(a.title)
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']),
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,
+ 'thumbnail
s': [{'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,
'uploader': uploader,
- 'artist':
a.
performer,
+ 'artist': performer,
'track': title,
'ext': 'mp4',
'protocol': 'm3u8',
'track': title,
'ext': 'mp4',
'protocol': 'm3u8',