1
0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2024-11-07 19:52:40 +01:00

[bbc] Add proper default to _search_json_ld call

This commit is contained in:
Sergey M․ 2016-08-08 22:44:36 +07:00
parent 321b5e082a
commit 522f6c066d
No known key found for this signature in database
GPG Key ID: 2C393E0F18A9236D

View File

@ -759,7 +759,7 @@ def _real_extract(self, url):
webpage = self._download_webpage(url, playlist_id) webpage = self._download_webpage(url, playlist_id)
json_ld_info = self._search_json_ld(webpage, playlist_id, default=None) json_ld_info = self._search_json_ld(webpage, playlist_id, default={})
timestamp = json_ld_info.get('timestamp') timestamp = json_ld_info.get('timestamp')
playlist_title = json_ld_info.get('title') playlist_title = json_ld_info.get('title')