Skip to content

Commit

Permalink
[reddit] check thumbnail URL(closes #20030)
Browse files Browse the repository at this point in the history
  • Loading branch information
Remita Amine committed Apr 26, 2019
1 parent da668a2 commit 97abf05
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion youtube_dl/extractor/reddit.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
ExtractorError,
int_or_none,
float_or_none,
url_or_none,
)


Expand Down Expand Up @@ -119,7 +120,7 @@ def _real_extract(self, url):
'_type': 'url_transparent',
'url': video_url,
'title': data.get('title'),
'thumbnail': data.get('thumbnail'),
'thumbnail': url_or_none(data.get('thumbnail')),
'timestamp': float_or_none(data.get('created_utc')),
'uploader': data.get('author'),
'like_count': int_or_none(data.get('ups')),
Expand Down

0 comments on commit 97abf05

Please sign in to comment.