1
0
mirror of https://codeberg.org/polarisfm/youtube-dl synced 2024-11-22 08:34:32 +01:00

Use existing subtitle methods for extraction

This commit is contained in:
Ben Bryant 2020-04-21 18:11:11 -07:00
parent 9c43316562
commit a8c4b05a9c

View File

@ -106,7 +106,7 @@ class FunimationIE(InfoExtractor):
if series:
title = '%s - %s' % (series, title)
description = self._html_search_meta(['description', 'og:description'], webpage, fatal=True)
subtitles = self.get_subtitles(url, video_id, display_id)
subtitles = self.extract_subtitles(url, video_id, display_id)
try:
headers = {}
@ -156,7 +156,7 @@ class FunimationIE(InfoExtractor):
'formats': formats,
}
def get_subtitles(self, url, video_id, display_id):
def _get_subtitles(self, url, video_id, display_id):
player_url = urljoin(url, '/player/' + video_id)
player_page = self._download_webpage(player_url, display_id)
text_tracks_json_string = self._search_regex(