From: Sergey M․ Date: Tue, 9 Sep 2014 15:09:32 +0000 (+0700) Subject: [khanacademy] Improve _VALID_URL (Closes #3695) X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=68477e88399ce102da3485e03e67d104b051f959;p=youtube-dl [khanacademy] Improve _VALID_URL (Closes #3695) --- 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[^/]+)/(?:[^/]+/){,2}(?P[^?#/]+)(?:$|[?#])' + _VALID_URL = r'^https?://(?:(?:www|api)\.)?khanacademy\.org/(?P[^/]+)/(?:[^/]+/){,2}(?P[^?#/]+)(?:$|[?#])' IE_NAME = 'KhanAcademy' _TESTS = [{