X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=youtube_dl%2Fextractor%2Fflipagram.py;h=b7be40f1b90f4f7ace02ba2b2687fe1e2e61ce30;hb=4c76aa06665621c7689938afd7bbdbc797b5c7ea;hp=634f5fe3b78723ee7b5885672c618a3bb008b3bc;hpb=d34995a9e3f596c4dd80178d99f7bd8dbc748e2b;p=youtube-dl diff --git a/youtube_dl/extractor/flipagram.py b/youtube_dl/extractor/flipagram.py index 634f5fe3b..b7be40f1b 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, fatal=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') @@ -81,7 +81,7 @@ class FlipagramIE(InfoExtractor): 'filesize': int_or_none(cover.get('size')), } for cover in flipagram.get('covers', []) if cover.get('url')] - # Note that this only retrieves comments that are initally loaded. + # Note that this only retrieves comments that are initially loaded. # For videos with large amounts of comments, most won't be retrieved. comments = [] for comment in video_data.get('comments', {}).get(video_id, {}).get('items', []):