[ie/createacademy] formatting

This commit is contained in:
Greg Rotter 2024-12-17 14:48:11 -08:00
parent 6eb69a3e12
commit ba1d60dfd8
2 changed files with 5 additions and 6 deletions

View file

@ -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

View file

@ -7,7 +7,7 @@ from ..utils import (
)
class CreateAcademyIE(InfoExtractor):
class CreateAcademyBaseIE(InfoExtractor):
_VALID_URL = r'https://www.createacademy.com/(?:[^/]+/)*lessons/(?P<id>[^/?#]+)'
_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<id>[^/?#]+)'
_TESTS = [