소스 검색

[ninegag] remove unnecessary condition

remitamine 10 년 전
부모
커밋
da9f180835
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      youtube_dl/extractor/ninegag.py

+ 1 - 1
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