From: remitamine Date: Tue, 22 Sep 2015 19:28:00 +0000 (+0100) Subject: [ninegag] remove unnecessary condition X-Git-Url: https://git.cielonegro.org/gitweb.cgi?a=commitdiff_plain;h=da9f18083596d0132d12652acd0bd8983c70c058;p=youtube-dl.git [ninegag] remove unnecessary condition --- 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