aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/ninegag.py
diff options
context:
space:
mode:
authorremitamine <remitamine@gmail.com>2015-09-22 20:28:00 +0100
committerSergey M․ <dstftw@gmail.com>2015-09-23 01:39:13 +0600
commitda9f18083596d0132d12652acd0bd8983c70c058 (patch)
tree93a701382387b3eebb3e5e6fbc35feb19156e964 /youtube_dl/extractor/ninegag.py
parent6b8ce312e3cb7d81e949cd5c64ad2a824d27830b (diff)
[ninegag] remove unnecessary condition
Diffstat (limited to 'youtube_dl/extractor/ninegag.py')
-rw-r--r--youtube_dl/extractor/ninegag.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/extractor/ninegag.py b/youtube_dl/extractor/ninegag.py
index 00bf98ef5..0a2725c65 100644
--- 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