projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
da668a2
)
[reddit] check thumbnail URL(closes #20030)
author
Remita Amine
<remitamine@gmail.com>
Fri, 26 Apr 2019 09:26:51 +0000
(10:26 +0100)
committer
Remita Amine
<remitamine@gmail.com>
Fri, 26 Apr 2019 09:26:51 +0000
(10:26 +0100)
youtube_dl/extractor/reddit.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/reddit.py
b/youtube_dl/extractor/reddit.py
index 7b0aa6232a0dea6ff09481560dc95f9a667e56e8..663f622b372d35577b85da9654b18f81f7c811a7 100644
(file)
--- 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')),