From 48291dd8da39a273cc4facba8e84b0a5f56bae8c Mon Sep 17 00:00:00 2001 From: Sergey M Date: Sun, 29 Jul 2018 06:23:02 +0700 Subject: [PATCH] Update pornhub.py --- youtube_dl/extractor/pornhub.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/youtube_dl/extractor/pornhub.py b/youtube_dl/extractor/pornhub.py index 3291177a0..ffc4405a8 100644 --- a/youtube_dl/extractor/pornhub.py +++ b/youtube_dl/extractor/pornhub.py @@ -173,7 +173,7 @@ class PornHubIE(InfoExtractor): video_id) if flashvars: subtitle_url = url_or_none(flashvars.get('closedCaptionsFile')) - if subtitle_url is not None: + if subtitle_url: subtitles.setdefault('en', []).append({ 'url': subtitle_url, 'ext': 'srt',