Skip to content

Commit

Permalink
[flipagram] Add proper default to _search_json_ld call
Browse files Browse the repository at this point in the history
  • Loading branch information
dstftw committed Aug 8, 2016
1 parent 1e7f602 commit e8ed735
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion youtube_dl/extractor/flipagram.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def _real_extract(self, url):
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')

Expand Down

0 comments on commit e8ed735

Please sign in to comment.