diff --git a/yt_dlp/extractor/_extractors.py b/yt_dlp/extractor/_extractors.py index 2fddcc206..630435002 100644 --- a/yt_dlp/extractor/_extractors.py +++ b/yt_dlp/extractor/_extractors.py @@ -435,7 +435,7 @@ from .cracked import CrackedIE from .crackle import CrackleIE from .craftsy import CraftsyIE from .createacademy import ( - CreateAcademyIE, + CreateAcademyBaseIE, CreateAcademyCourseIE, ) from .crooksandliars import CrooksAndLiarsIE diff --git a/yt_dlp/extractor/createacademy.py b/yt_dlp/extractor/createacademy.py index af489b4d8..6cafd0136 100644 --- a/yt_dlp/extractor/createacademy.py +++ b/yt_dlp/extractor/createacademy.py @@ -7,7 +7,7 @@ from ..utils import ( ) -class CreateAcademyIE(InfoExtractor): +class CreateAcademyBaseIE(InfoExtractor): _VALID_URL = r'https://www.createacademy.com/(?:[^/]+/)*lessons/(?P[^/?#]+)' _TESTS = [ @@ -40,7 +40,7 @@ class CreateAcademyIE(InfoExtractor): return { 'section_data': section, - 'title': prefix + num + ' - ' + lesson['title'].strip() + 'title': prefix + num + ' - ' + lesson['title'].strip(), } return { @@ -49,7 +49,7 @@ class CreateAcademyIE(InfoExtractor): 'number': 0, 'title': '', }, - 'title': prefix + '00 - ' + data['props']['lesson']['title'].strip() + 'title': prefix + '00 - ' + data['props']['lesson']['title'].strip(), } def _get_policy_key(self, data, video_id): @@ -62,7 +62,6 @@ class CreateAcademyIE(InfoExtractor): return key.group().replace('"', '') - def _get_manifest_url(self, data, video_id): hostVideoId = data['props']['lesson']['video']['host_video_id'] accountId = data['props']['brightcove']['accountId'] @@ -112,7 +111,7 @@ class CreateAcademyIE(InfoExtractor): } -class CreateAcademyCourseIE(CreateAcademyIE): +class CreateAcademyCourseIE(CreateAcademyBaseIE): _VALID_URL = r'https://www.createacademy.com/courses/(?P[^/?#]+)' _TESTS = [