mirror of
https://github.com/ytdl-org/youtube-dl
synced 2025-01-21 02:40:10 +09:00
Proposed changes
This commit is contained in:
parent
30d8bbf6fa
commit
174b795485
@ -9,6 +9,7 @@ from ..compat import compat_HTTPError
|
|||||||
from ..utils import (
|
from ..utils import (
|
||||||
ExtractorError,
|
ExtractorError,
|
||||||
int_or_none,
|
int_or_none,
|
||||||
|
try_get
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
@ -98,7 +99,7 @@ class SonyLIVIE(InfoExtractor):
|
|||||||
title += ' - ' + episode
|
title += ' - ' + episode
|
||||||
subtitles = {}
|
subtitles = {}
|
||||||
for subtitle in (content.get('subtitle') or []):
|
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:
|
if not base_url:
|
||||||
continue
|
continue
|
||||||
lang_code = subtitle.get('subtitleLanguageName')
|
lang_code = subtitle.get('subtitleLanguageName')
|
||||||
|
Loading…
Reference in New Issue
Block a user