From: Sergey M․ Date: Mon, 8 Aug 2016 15:46:19 +0000 (+0700) Subject: [flipagram] Add proper default to _search_json_ld call X-Git-Url: http://git.bitcoin.ninja/?a=commitdiff_plain;h=e8ed7354e6fdd7bd3759e24f0aa08233316303b7;p=youtube-dl [flipagram] Add proper default to _search_json_ld call --- diff --git a/youtube_dl/extractor/flipagram.py b/youtube_dl/extractor/flipagram.py index acb6133ff..1902a2393 100644 --- a/youtube_dl/extractor/flipagram.py +++ b/youtube_dl/extractor/flipagram.py @@ -48,7 +48,7 @@ class FlipagramIE(InfoExtractor): flipagram = video_data['flipagram'] video = flipagram['video'] - json_ld = self._search_json_ld(webpage, video_id, default=False) + json_ld = self._search_json_ld(webpage, video_id, default={}) title = json_ld.get('title') or flipagram['captionText'] description = json_ld.get('description') or flipagram.get('captionText')