aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/khanacademy.py
diff options
context:
space:
mode:
authormegustamucho <megustamucho@users.noreply.github.com>2014-09-20 22:41:45 +1000
committermegustamucho <megustamucho@users.noreply.github.com>2014-09-20 22:41:45 +1000
commit34e14a9beb3abe76bcda1154030978979c6c1d1d (patch)
treeb773b8f873084056eea80826e776569de90ec090 /youtube_dl/extractor/khanacademy.py
parenta8aa99442f0bd6e3c65bd6c464dfd0a87c99f65d (diff)
parentffb5b05db1f55b9b6e188d2c86befe0493829927 (diff)
Merge remote-tracking branch 'upstream/master'
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 = [{