Skip to content

Commit

Permalink
[vzaar] Fix videos with empty title (closes #21606)
Browse files Browse the repository at this point in the history
  • Loading branch information
dstftw authored and meunierd committed Dec 27, 2019
1 parent d23a6ca commit 09bdf37
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion youtube_dl/extractor/vzaar.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,10 @@ class VzaarIE(InfoExtractor):
'ext': 'mp3',
'title': 'MP3',
},
}, {
# with null videoTitle
'url': 'https://view.vzaar.com/20313539/download',
'only_matching': True,
}]

@staticmethod
Expand All @@ -45,7 +49,7 @@ def _real_extract(self, url):
video_data = self._download_json(
'http://view.vzaar.com/v2/%s/video' % video_id, video_id)

title = video_data['videoTitle']
title = video_data.get('videoTitle') or video_id

formats = []

Expand Down

0 comments on commit 09bdf37

Please sign in to comment.