1
0
Fork 0
mirror of https://github.com/blackjack4494/yt-dlc.git synced 2024-12-22 15:57:23 +00:00

[vzaar] Fix videos with empty title (closes #21606)

This commit is contained in:
Sergey M․ 2019-07-03 23:16:40 +07:00
parent e61ac1a09c
commit 313877c6a2
No known key found for this signature in database
GPG key ID: 2C393E0F18A9236D

View file

@ -32,6 +32,10 @@ class VzaarIE(InfoExtractor):
'ext': 'mp3', 'ext': 'mp3',
'title': 'MP3', 'title': 'MP3',
}, },
}, {
# with null videoTitle
'url': 'https://view.vzaar.com/20313539/download',
'only_matching': True,
}] }]
@staticmethod @staticmethod
@ -45,7 +49,7 @@ class VzaarIE(InfoExtractor):
video_data = self._download_json( video_data = self._download_json(
'http://view.vzaar.com/v2/%s/video' % video_id, video_id) 'http://view.vzaar.com/v2/%s/video' % video_id, video_id)
title = video_data['videoTitle'] title = video_data.get('videoTitle') or video_id
formats = [] formats = []