parent
bc516a3f3c
commit
09d18ad07e
1 changed files with 9 additions and 1 deletions
|
@ -100,7 +100,14 @@ class SonyLIVIE(InfoExtractor):
|
||||||
metadata = self._call_api(
|
metadata = self._call_api(
|
||||||
'1.6', 'IN/DETAIL/' + video_id, video_id)['containers'][0]['metadata']
|
'1.6', 'IN/DETAIL/' + video_id, video_id)['containers'][0]['metadata']
|
||||||
title = metadata['episodeTitle']
|
title = metadata['episodeTitle']
|
||||||
|
subtitles = {}
|
||||||
|
for sub in content.get('subtitle', []):
|
||||||
|
sub_url = sub.get('subtitleUrl')
|
||||||
|
if not sub_url:
|
||||||
|
continue
|
||||||
|
subtitles.setdefault(sub.get('subtitleLanguageName', 'ENG'), []).append({
|
||||||
|
'url': sub_url,
|
||||||
|
})
|
||||||
return {
|
return {
|
||||||
'id': video_id,
|
'id': video_id,
|
||||||
'title': title,
|
'title': title,
|
||||||
|
@ -113,6 +120,7 @@ class SonyLIVIE(InfoExtractor):
|
||||||
'series': metadata.get('title'),
|
'series': metadata.get('title'),
|
||||||
'episode_number': int_or_none(metadata.get('episodeNumber')),
|
'episode_number': int_or_none(metadata.get('episodeNumber')),
|
||||||
'release_year': int_or_none(metadata.get('year')),
|
'release_year': int_or_none(metadata.get('year')),
|
||||||
|
'subtitles': subtitles,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue