projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
5600e21
)
[9gag] Relax optional fields
author
Sergey M․
<dstftw@gmail.com>
Tue, 22 Sep 2015 19:46:40 +0000
(
01:46
+0600)
committer
Sergey M․
<dstftw@gmail.com>
Tue, 22 Sep 2015 19:46:40 +0000
(
01:46
+0600)
youtube_dl/extractor/ninegag.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/ninegag.py
b/youtube_dl/extractor/ninegag.py
index 692cc3368f17ab80c6ea0132b8ba6eefa3ef9120..6daae73188b3aa57ab18fc340c551de406f2f220 100644
(file)
--- a/
youtube_dl/extractor/ninegag.py
+++ b/
youtube_dl/extractor/ninegag.py
@@
-70,8
+70,8
@@
class NineGagIE(InfoExtractor):
source_url = self._EXTERNAL_VIDEO_PROVIDER[external_video_provider]['url'] % external_video_id
ie_key = self._EXTERNAL_VIDEO_PROVIDER[external_video_provider]['ie_key']
title = post_view['title']
source_url = self._EXTERNAL_VIDEO_PROVIDER[external_video_provider]['url'] % external_video_id
ie_key = self._EXTERNAL_VIDEO_PROVIDER[external_video_provider]['ie_key']
title = post_view['title']
- description = post_view
['description']
- view_count = str_to_int(post_view
['externalView']
)
+ description = post_view
.get('description')
+ 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')
return {
thumbnail = post_view.get('thumbnail_700w') or post_view.get('ogImageUrl') or post_view.get('thumbnail_300w')
return {