aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/khanacademy.py
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2014-09-09 22:09:32 +0700
committerSergey M․ <dstftw@gmail.com>2014-09-09 22:09:32 +0700
commit68477e88399ce102da3485e03e67d104b051f959 (patch)
tree157b99460b2f2cc63c3bfd822a55e4fbe33218fe /youtube_dl/extractor/khanacademy.py
parent0dc5365564d06451e6c90fb1b8653c8429559785 (diff)
[khanacademy] Improve _VALID_URL (Closes #3695)
Diffstat (limited to 'youtube_dl/extractor/khanacademy.py')
-rw-r--r--youtube_dl/extractor/khanacademy.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/extractor/khanacademy.py b/youtube_dl/extractor/khanacademy.py
index 04bac7517..408d00944 100644
--- a/youtube_dl/extractor/khanacademy.py
+++ b/youtube_dl/extractor/khanacademy.py
@@ -9,7 +9,7 @@ from ..utils import (
class KhanAcademyIE(InfoExtractor):
- _VALID_URL = r'^https?://(?:www\.)?khanacademy\.org/(?P<key>[^/]+)/(?:[^/]+/){,2}(?P<id>[^?#/]+)(?:$|[?#])'
+ _VALID_URL = r'^https?://(?:(?:www|api)\.)?khanacademy\.org/(?P<key>[^/]+)/(?:[^/]+/){,2}(?P<id>[^?#/]+)(?:$|[?#])'
IE_NAME = 'KhanAcademy'
_TESTS = [{