1
0
mirror of https://github.com/l1ving/youtube-dl synced 2025-02-05 03:54:13 +08:00

[ninegag] remove unnecessary condition

This commit is contained in:
remitamine 2015-09-22 20:28:00 +01:00
parent 83b6425868
commit c7d026e0bb

View 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