projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
fd5e6f7
)
[udemy] Make sure test case is not inherited
author
Philipp Hagemeister
<phihag@phihag.de>
Sun, 16 Mar 2014 06:09:10 +0000
(07:09 +0100)
committer
Philipp Hagemeister
<phihag@phihag.de>
Sun, 16 Mar 2014 06:09:10 +0000
(07:09 +0100)
youtube_dl/extractor/udemy.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/udemy.py
b/youtube_dl/extractor/udemy.py
index 35df918b879ced4b7f2d7e90f1e21d15479504ca..054f427252341306edd7698e6d150bcb619b64fc 100644
(file)
--- a/
youtube_dl/extractor/udemy.py
+++ b/
youtube_dl/extractor/udemy.py
@@
-16,7
+16,7
@@
class UdemyIE(InfoExtractor):
_LOGIN_URL = 'https://www.udemy.com/join/login-submit/'
_NETRC_MACHINE = 'udemy'
_LOGIN_URL = 'https://www.udemy.com/join/login-submit/'
_NETRC_MACHINE = 'udemy'
- _TEST
=
{
+ _TEST
S = [
{
'url': 'https://www.udemy.com/java-tutorial/#/lecture/172757',
'md5': '98eda5b657e752cf945d8445e261b5c5',
'info_dict': {
'url': 'https://www.udemy.com/java-tutorial/#/lecture/172757',
'md5': '98eda5b657e752cf945d8445e261b5c5',
'info_dict': {
@@
-27,7
+27,7
@@
class UdemyIE(InfoExtractor):
'duration': 579.29,
},
'skip': 'Requires udemy account credentials',
'duration': 579.29,
},
'skip': 'Requires udemy account credentials',
- }
+ }
]
def _handle_error(self, response):
if not isinstance(response, dict):
def _handle_error(self, response):
if not isinstance(response, dict):
@@
-129,6
+129,7
@@
class UdemyCourseIE(UdemyIE):
_VALID_URL = r'https?://www\.udemy\.com/(?P<coursepath>[\da-z-]+)'
_SUCCESSFULLY_ENROLLED = '>You have enrolled in this course!<'
_ALREADY_ENROLLED = '>You are already taking this course.<'
_VALID_URL = r'https?://www\.udemy\.com/(?P<coursepath>[\da-z-]+)'
_SUCCESSFULLY_ENROLLED = '>You have enrolled in this course!<'
_ALREADY_ENROLLED = '>You are already taking this course.<'
+ _TESTS = []
@classmethod
def suitable(cls, url):
@classmethod
def suitable(cls, url):