1
0
Fork 0

[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
commit 550e65410a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
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):