aboutsummaryrefslogtreecommitdiffstats
path: root/youtube_dl/extractor/lynda.py
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2015-02-27 20:56:06 +0600
committerSergey M․ <dstftw@gmail.com>2015-02-27 20:56:06 +0600
commita0d646135aaf417e0aa000419974c676335d164a (patch)
tree85259e1e4beb88992b1e808336077ac434e24bdf /youtube_dl/extractor/lynda.py
parentf3bff94cf96587462baa8da6d7e5f17801381753 (diff)
downloadyoutube-dl-a0d646135aaf417e0aa000419974c676335d164a.zip
youtube-dl-a0d646135aaf417e0aa000419974c676335d164a.tar.gz
youtube-dl-a0d646135aaf417e0aa000419974c676335d164a.tar.bz2
[lynda] Extend _VALID_URL
Diffstat (limited to 'youtube_dl/extractor/lynda.py')
-rw-r--r--youtube_dl/extractor/lynda.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/youtube_dl/extractor/lynda.py b/youtube_dl/extractor/lynda.py
index 109055e..e7e9d80 100644
--- a/youtube_dl/extractor/lynda.py
+++ b/youtube_dl/extractor/lynda.py
@@ -18,7 +18,7 @@ from ..utils import (
class LyndaIE(InfoExtractor):
IE_NAME = 'lynda'
IE_DESC = 'lynda.com videos'
- _VALID_URL = r'https?://www\.lynda\.com/[^/]+/[^/]+/\d+/(\d+)-\d\.html'
+ _VALID_URL = r'https?://www\.lynda\.com/(?:[^/]+/[^/]+/\d+|player/embed)/(\d+)'
_LOGIN_URL = 'https://www.lynda.com/login/login.aspx'
_NETRC_MACHINE = 'lynda'
@@ -27,7 +27,7 @@ class LyndaIE(InfoExtractor):
ACCOUNT_CREDENTIALS_HINT = 'Use --username and --password options to provide lynda.com account credentials.'
- _TEST = {
+ _TESTS = [{
'url': 'http://www.lynda.com/Bootstrap-tutorials/Using-exercise-files/110885/114408-4.html',
'md5': 'ecfc6862da89489161fb9cd5f5a6fac1',
'info_dict': {
@@ -36,7 +36,10 @@ class LyndaIE(InfoExtractor):
'title': 'Using the exercise files',
'duration': 68
}
- }
+ }, {
+ 'url': 'https://www.lynda.com/player/embed/133770?tr=foo=1;bar=g;fizz=rt&fs=0',
+ 'only_matching': True,
+ }]
def _real_initialize(self):
self._login()