mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-05 02:32:44 +01:00
[pluralsight] Extract base class
This commit is contained in:
parent
0533915aad
commit
563772eda4
@ -16,11 +16,15 @@
|
||||
)
|
||||
|
||||
|
||||
class PluralsightIE(InfoExtractor):
|
||||
class PluralsightBaseIE(InfoExtractor):
|
||||
_API_BASE = 'http://app.pluralsight.com'
|
||||
|
||||
|
||||
class PluralsightIE(PluralsightBaseIE):
|
||||
IE_NAME = 'pluralsight'
|
||||
_VALID_URL = r'https?://(?:(?:www|app)\.)?pluralsight\.com/training/player\?'
|
||||
_LOGIN_URL = 'https://app.pluralsight.com/id/'
|
||||
_API_BASE = 'http://app.pluralsight.com'
|
||||
|
||||
_NETRC_MACHINE = 'pluralsight'
|
||||
|
||||
_TESTS = [{
|
||||
@ -174,7 +178,7 @@ def _real_extract(self, url):
|
||||
}
|
||||
|
||||
|
||||
class PluralsightCourseIE(InfoExtractor):
|
||||
class PluralsightCourseIE(PluralsightBaseIE):
|
||||
IE_NAME = 'pluralsight:course'
|
||||
_VALID_URL = r'https?://(?:(?:www|app)\.)?pluralsight\.com/(?:library/)?courses/(?P<id>[^/]+)'
|
||||
_TESTS = [{
|
||||
|
Loading…
Reference in New Issue
Block a user