projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6b8ce31
)
[ninegag] remove unnecessary condition
author
remitamine
<remitamine@gmail.com>
Tue, 22 Sep 2015 19:28:00 +0000
(20:28 +0100)
committer
Sergey M․
<dstftw@gmail.com>
Tue, 22 Sep 2015 19:39:13 +0000
(
01:39
+0600)
youtube_dl/extractor/ninegag.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/ninegag.py
b/youtube_dl/extractor/ninegag.py
index 00bf98ef5fa9700350a354a437d6b3d3649f36f3..0a2725c65dc99d9c00bd7235b563480eac8ea9f4 100644
(file)
--- a/
youtube_dl/extractor/ninegag.py
+++ b/
youtube_dl/extractor/ninegag.py
@@
-70,7
+70,7
@@
class NineGagIE(InfoExtractor):
ie_key = None
source_url = post_view.get('sourceUrl')
- if not source_url
or source_url == ''
:
+ if not source_url:
external_video_id = post_view['videoExternalId']
external_video_provider = post_view['videoExternalProvider']
source_url = self._EXTERNAL_VIDEO_PROVIDER[external_video_provider]['url'] % external_video_id