diff options
author | Sergey M․ <dstftw@gmail.com> | 2019-07-03 23:16:40 +0700 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2019-07-03 23:16:40 +0700 |
commit | 313877c6a2b5ac8b880a9c47e8038ea0cdcf3deb (patch) | |
tree | 96d67a736bd3fcb70b4969c169d0190cbfdf7d1d /youtube_dl | |
parent | e61ac1a09c215d9efb9a65ee798a6c1d6a0863cd (diff) |
[vzaar] Fix videos with empty title (closes #21606)
Diffstat (limited to 'youtube_dl')
-rw-r--r-- | youtube_dl/extractor/vzaar.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/youtube_dl/extractor/vzaar.py b/youtube_dl/extractor/vzaar.py index 6000671c3..3336e6c15 100644 --- a/youtube_dl/extractor/vzaar.py +++ b/youtube_dl/extractor/vzaar.py @@ -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 @@ -45,7 +49,7 @@ class VzaarIE(InfoExtractor): 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 = [] |