]> gitweb @ CieloNegro.org - youtube-dl.git/commitdiff
[bbc] Add proper default to _search_json_ld call
authorSergey M․ <dstftw@gmail.com>
Mon, 8 Aug 2016 15:44:36 +0000 (22:44 +0700)
committerSergey M․ <dstftw@gmail.com>
Mon, 8 Aug 2016 15:44:36 +0000 (22:44 +0700)
youtube_dl/extractor/bbc.py

index b29e05970e5bd4f491f9458edd7d0a784cf63b8b..83e6d024c7fd4c6ee2adde607e4f1cd203910805 100644 (file)
@@ -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')