aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl/extractor/udemy.py
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2014-12-04 08:27:40 +0100
committerPhilipp Hagemeister <phihag@phihag.de>2014-12-04 08:27:40 +0100
commit810fb84d5edaccfdebbf1c4e441d7747f2688b7b (patch)
tree5a56fb76b9cb2225565b7fc6aa1c64e2e53883b6 /youtube_dl/extractor/udemy.py
parent5f5e993dc61e68402d60f35df66a08b8bcca808c (diff)
pep8 and minor beautification all around
Diffstat (limited to 'youtube_dl/extractor/udemy.py')
-rw-r--r--youtube_dl/extractor/udemy.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/youtube_dl/extractor/udemy.py b/youtube_dl/extractor/udemy.py
index 0e4d386a8..5271611ac 100644
--- a/youtube_dl/extractor/udemy.py
+++ b/youtube_dl/extractor/udemy.py
@@ -97,11 +97,8 @@ class UdemyIE(InfoExtractor):
if 'returnUrl' not in response:
raise ExtractorError('Unable to log in')
-
-
def _real_extract(self, url):
- mobj = re.match(self._VALID_URL, url)
- lecture_id = mobj.group('id')
+ lecture_id = self._match_id(url)
lecture = self._download_json(
'https://www.udemy.com/api-1.1/lectures/%s' % lecture_id,