aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl
diff options
context:
space:
mode:
authorRemita Amine <remitamine@gmail.com>2019-04-26 10:26:51 +0100
committerRemita Amine <remitamine@gmail.com>2019-04-26 10:26:51 +0100
commit97abf05ad305a5c06e72a5d368c00722d867433b (patch)
tree80f782e41f0fc82a2ddcd5a9bc7bae0842fa84ce /youtube_dl
parentda668a23bdc24dbd4bd289497fb7a258d9b8b2e6 (diff)
[reddit] check thumbnail URL(closes #20030)
Diffstat (limited to 'youtube_dl')
-rw-r--r--youtube_dl/extractor/reddit.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/youtube_dl/extractor/reddit.py b/youtube_dl/extractor/reddit.py
index 7b0aa6232..663f622b3 100644
--- a/youtube_dl/extractor/reddit.py
+++ b/youtube_dl/extractor/reddit.py
@@ -7,6 +7,7 @@ from ..utils import (
ExtractorError,
int_or_none,
float_or_none,
+ url_or_none,
)
@@ -119,7 +120,7 @@ class RedditRIE(InfoExtractor):
'_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')),