projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
0533915
)
[pluralsight] Extract base class
author
Sergey M․
<dstftw@gmail.com>
Sat, 21 Nov 2015 15:37:29 +0000
(21:37 +0600)
committer
Sergey M․
<dstftw@gmail.com>
Sat, 21 Nov 2015 15:37:29 +0000
(21:37 +0600)
youtube_dl/extractor/pluralsight.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/pluralsight.py
b/youtube_dl/extractor/pluralsight.py
index fe6850aac15f765c9c549435d8380492e1b4e15a..de7dc739b25c9f5418ec9e1336b161115c8277c2 100644
(file)
--- a/
youtube_dl/extractor/pluralsight.py
+++ b/
youtube_dl/extractor/pluralsight.py
@@
-16,11
+16,15
@@
from ..utils import (
)
)
-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/'
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 = [{
_NETRC_MACHINE = 'pluralsight'
_TESTS = [{
@@
-174,7
+178,7
@@
class PluralsightIE(InfoExtractor):
}
}
-class PluralsightCourseIE(
InfoExtractor
):
+class PluralsightCourseIE(
PluralsightBaseIE
):
IE_NAME = 'pluralsight:course'
_VALID_URL = r'https?://(?:(?:www|app)\.)?pluralsight\.com/(?:library/)?courses/(?P<id>[^/]+)'
_TESTS = [{
IE_NAME = 'pluralsight:course'
_VALID_URL = r'https?://(?:(?:www|app)\.)?pluralsight\.com/(?:library/)?courses/(?P<id>[^/]+)'
_TESTS = [{