mirror of
https://github.com/yt-dlp/yt-dlp
synced 2025-01-15 03:41:33 +01:00
[ie/createacademy] formatting
This commit is contained in:
parent
6eb69a3e12
commit
ba1d60dfd8
2 changed files with 5 additions and 6 deletions
|
@ -435,7 +435,7 @@ from .cracked import CrackedIE
|
||||||
from .crackle import CrackleIE
|
from .crackle import CrackleIE
|
||||||
from .craftsy import CraftsyIE
|
from .craftsy import CraftsyIE
|
||||||
from .createacademy import (
|
from .createacademy import (
|
||||||
CreateAcademyIE,
|
CreateAcademyBaseIE,
|
||||||
CreateAcademyCourseIE,
|
CreateAcademyCourseIE,
|
||||||
)
|
)
|
||||||
from .crooksandliars import CrooksAndLiarsIE
|
from .crooksandliars import CrooksAndLiarsIE
|
||||||
|
|
|
@ -7,7 +7,7 @@ from ..utils import (
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
class CreateAcademyIE(InfoExtractor):
|
class CreateAcademyBaseIE(InfoExtractor):
|
||||||
_VALID_URL = r'https://www.createacademy.com/(?:[^/]+/)*lessons/(?P<id>[^/?#]+)'
|
_VALID_URL = r'https://www.createacademy.com/(?:[^/]+/)*lessons/(?P<id>[^/?#]+)'
|
||||||
|
|
||||||
_TESTS = [
|
_TESTS = [
|
||||||
|
@ -40,7 +40,7 @@ class CreateAcademyIE(InfoExtractor):
|
||||||
|
|
||||||
return {
|
return {
|
||||||
'section_data': section,
|
'section_data': section,
|
||||||
'title': prefix + num + ' - ' + lesson['title'].strip()
|
'title': prefix + num + ' - ' + lesson['title'].strip(),
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
|
@ -49,7 +49,7 @@ class CreateAcademyIE(InfoExtractor):
|
||||||
'number': 0,
|
'number': 0,
|
||||||
'title': '',
|
'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):
|
def _get_policy_key(self, data, video_id):
|
||||||
|
@ -62,7 +62,6 @@ class CreateAcademyIE(InfoExtractor):
|
||||||
|
|
||||||
return key.group().replace('"', '')
|
return key.group().replace('"', '')
|
||||||
|
|
||||||
|
|
||||||
def _get_manifest_url(self, data, video_id):
|
def _get_manifest_url(self, data, video_id):
|
||||||
hostVideoId = data['props']['lesson']['video']['host_video_id']
|
hostVideoId = data['props']['lesson']['video']['host_video_id']
|
||||||
accountId = data['props']['brightcove']['accountId']
|
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>[^/?#]+)'
|
_VALID_URL = r'https://www.createacademy.com/courses/(?P<id>[^/?#]+)'
|
||||||
|
|
||||||
_TESTS = [
|
_TESTS = [
|
||||||
|
|
Loading…
Reference in a new issue