[ninegag] remove unnecessary condition
authorremitamine <remitamine@gmail.com>
Tue, 22 Sep 2015 19:28:00 +0000 (20:28 +0100)
committerSergey M․ <dstftw@gmail.com>
Tue, 22 Sep 2015 19:39:13 +0000 (01:39 +0600)
youtube_dl/extractor/ninegag.py

index 00bf98ef5fa9700350a354a437d6b3d3649f36f3..0a2725c65dc99d9c00bd7235b563480eac8ea9f4 100644 (file)
@@ -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