[ie] Extract subtitles from SMIL manifests (#7667)

Authored by: bashonly, pukkandan
This commit is contained in:
bashonly
2023-07-23 19:09:52 -05:00
committed by GitHub
parent 39837ae319
commit 550e65410a
5 changed files with 34 additions and 28 deletions

View File

@@ -45,7 +45,7 @@ class ThePlatformBaseIE(OnceIE):
raise ExtractorError(
error_element.attrib['abstract'], expected=True)
smil_formats = self._parse_smil_formats(
smil_formats, subtitles = self._parse_smil_formats_and_subtitles(
meta, smil_url, video_id, namespace=default_ns,
# the parameters are from syfy.com, other sites may use others,
# they also work for nbc.com
@@ -65,8 +65,6 @@ class ThePlatformBaseIE(OnceIE):
formats.append(_format)
subtitles = self._parse_smil_subtitles(meta, default_ns)
return formats, subtitles
def _download_theplatform_metadata(self, path, video_id):