1
0
mirror of https://github.com/l1ving/youtube-dl synced 2025-03-10 22:27:45 +08:00

Update pornhub.py

This commit is contained in:
Sergey M 2018-07-29 06:23:02 +07:00 committed by GitHub
parent 433f3e6f0e
commit 48291dd8da
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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',