0
0
Fork 0

[9gag] Relax optional fields

main
Sergey M․ 2015-09-23 01:46:40 +06:00
parent 5600e214c3
commit 8ca2e93e1a
1 changed files with 2 additions and 2 deletions

View File

@ -70,8 +70,8 @@ class NineGagIE(InfoExtractor):
source_url = self._EXTERNAL_VIDEO_PROVIDER[external_video_provider]['url'] % external_video_id source_url = self._EXTERNAL_VIDEO_PROVIDER[external_video_provider]['url'] % external_video_id
ie_key = self._EXTERNAL_VIDEO_PROVIDER[external_video_provider]['ie_key'] ie_key = self._EXTERNAL_VIDEO_PROVIDER[external_video_provider]['ie_key']
title = post_view['title'] title = post_view['title']
description = post_view['description'] description = post_view.get('description')
view_count = str_to_int(post_view['externalView']) view_count = str_to_int(post_view.get('externalView'))
thumbnail = post_view.get('thumbnail_700w') or post_view.get('ogImageUrl') or post_view.get('thumbnail_300w') thumbnail = post_view.get('thumbnail_700w') or post_view.get('ogImageUrl') or post_view.get('thumbnail_300w')
return { return {