mirror of
https://github.com/ytdl-org/youtube-dl.git
synced 2024-11-13 04:51:22 +00:00
Proposed changes
This commit is contained in:
parent
30d8bbf6fa
commit
174b795485
1 changed files with 2 additions and 1 deletions
|
@ -9,6 +9,7 @@ from ..compat import compat_HTTPError
|
|||
from ..utils import (
|
||||
ExtractorError,
|
||||
int_or_none,
|
||||
try_get
|
||||
)
|
||||
|
||||
|
||||
|
@ -98,7 +99,7 @@ class SonyLIVIE(InfoExtractor):
|
|||
title += ' - ' + episode
|
||||
subtitles = {}
|
||||
for subtitle in (content.get('subtitle') or []):
|
||||
base_url = subtitle.get('subtitleUrl')
|
||||
base_url = try_get(subtitle, lambda x: x['subtitleUrl'], compat_str)
|
||||
if not base_url:
|
||||
continue
|
||||
lang_code = subtitle.get('subtitleLanguageName')
|
||||
|
|
Loading…
Reference in a new issue