projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
321b5e0
)
[bbc] Add proper default to _search_json_ld call
author
Sergey M․
<dstftw@gmail.com>
Mon, 8 Aug 2016 15:44:36 +0000
(22:44 +0700)
committer
Sergey M․
<dstftw@gmail.com>
Mon, 8 Aug 2016 15:44:36 +0000
(22:44 +0700)
youtube_dl/extractor/bbc.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/bbc.py
b/youtube_dl/extractor/bbc.py
index b29e05970e5bd4f491f9458edd7d0a784cf63b8b..83e6d024c7fd4c6ee2adde607e4f1cd203910805 100644
(file)
--- a/
youtube_dl/extractor/bbc.py
+++ b/
youtube_dl/extractor/bbc.py
@@
-759,7
+759,7
@@
class BBCIE(BBCCoUkIE):
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')
playlist_title = json_ld_info.get('title')