mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-12-02 19:36:45 +00:00
[ninegag] remove unnecessary condition
This commit is contained in:
parent
6b8ce312e3
commit
da9f180835
|
@ -70,7 +70,7 @@ def _real_extract(self, url):
|
||||||
|
|
||||||
ie_key = None
|
ie_key = None
|
||||||
source_url = post_view.get('sourceUrl')
|
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_id = post_view['videoExternalId']
|
||||||
external_video_provider = post_view['videoExternalProvider']
|
external_video_provider = post_view['videoExternalProvider']
|
||||||
source_url = self._EXTERNAL_VIDEO_PROVIDER[external_video_provider]['url'] % external_video_id
|
source_url = self._EXTERNAL_VIDEO_PROVIDER[external_video_provider]['url'] % external_video_id
|
||||||
|
|
Loading…
Reference in a new issue