Browse Source

[khanacademy] Improve _VALID_URL (Closes #3695)

master
Sergey M․ 10 years ago
parent
commit
68477e8839
1 changed files with 1 additions and 1 deletions
  1. 2
      youtube_dl/extractor/khanacademy.py

2
youtube_dl/extractor/khanacademy.py

@ -9,7 +9,7 @@ from ..utils import (
class KhanAcademyIE(InfoExtractor): 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' IE_NAME = 'KhanAcademy'
_TESTS = [{ _TESTS = [{

Loading…
Cancel
Save