|
|
@ -83,6 +83,16 @@ class SrfIE(InfoExtractor):
|
|
|
|
|
|
|
|
|
|
|
|
self._sort_formats(formats)
|
|
|
|
self._sort_formats(formats)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
subtitles = {}
|
|
|
|
|
|
|
|
subtitles_data = video_data.find('Subtitles')
|
|
|
|
|
|
|
|
if subtitles_data is not None:
|
|
|
|
|
|
|
|
subtitles_list = [{
|
|
|
|
|
|
|
|
'url': sub.text,
|
|
|
|
|
|
|
|
'ext': determine_ext(sub.text),
|
|
|
|
|
|
|
|
} for sub in subtitles_data]
|
|
|
|
|
|
|
|
if subtitles_list:
|
|
|
|
|
|
|
|
subtitles['de'] = subtitles_list
|
|
|
|
|
|
|
|
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
'id': video_id,
|
|
|
|
'id': video_id,
|
|
|
|
'display_id': display_id,
|
|
|
|
'display_id': display_id,
|
|
|
@ -90,4 +100,5 @@ class SrfIE(InfoExtractor):
|
|
|
|
'title': title,
|
|
|
|
'title': title,
|
|
|
|
'thumbnails': thumbnails,
|
|
|
|
'thumbnails': thumbnails,
|
|
|
|
'timestamp': timestamp,
|
|
|
|
'timestamp': timestamp,
|
|
|
|
|
|
|
|
'subtitles': subtitles,
|
|
|
|
}
|
|
|
|
}
|
|
|
|