[udemy] Fix typo
authorSergey M․ <dstftw@gmail.com>
Wed, 30 Dec 2015 19:09:21 +0000 (01:09 +0600)
committerSergey M․ <dstftw@gmail.com>
Wed, 30 Dec 2015 19:09:21 +0000 (01:09 +0600)
youtube_dl/extractor/udemy.py

index 59832b1ece75d480afdfa16c3c398a701f532a06..ce7e211fc9c31c3a2af920e8bf07a4c9d21f2216 100644 (file)
@@ -147,7 +147,7 @@ class UdemyIE(InfoExtractor):
             # Error could possibly mean we are not enrolled in the course
             if isinstance(e.cause, compat_HTTPError) and e.cause.code == 403:
                 self._enroll_course(webpage, course_id)
-                lecture_id = self._download_lecture(course_id, lecture_id)
+                lecture = self._download_lecture(course_id, lecture_id)
             else:
                 raise