X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=youtube_dl%2Fextractor%2Facademicearth.py;h=72f81d01a4976767033ea236eff4d8a5e2e43d33;hb=96d7b8873ad47c1f52193e84fc6f8cfe12891aa7;hp=5045e7332a8833984af5d4a74e626b93f520cff6;hpb=d90df974c3164ea377f2ce2b04742e6ff21379e8;p=youtube-dl diff --git a/youtube_dl/extractor/academicearth.py b/youtube_dl/extractor/academicearth.py index 5045e7332..72f81d01a 100644 --- a/youtube_dl/extractor/academicearth.py +++ b/youtube_dl/extractor/academicearth.py @@ -1,16 +1,12 @@ -import datetime -import json +from __future__ import unicode_literals import re from .common import InfoExtractor -from ..utils import ( - remove_start, -) class AcademicEarthCourseIE(InfoExtractor): - _VALID_URL = r'^https?://(?:www\.)?academicearth\.org/courses/(?P[^?#/]+)' - IE_NAME = u'AcademicEarth:Course' + _VALID_URL = r'^https?://(?:www\.)?academicearth\.org/(?:courses|playlists)/(?P[^?#/]+)' + IE_NAME = 'AcademicEarth:Course' def _real_extract(self, url): m = re.match(self._VALID_URL, url)