webpage, 'checkout url', group='url', default=None))
if checkout_url:
raise ExtractorError(
- 'Course %s is not free. You have to pay for it before you can download.'
+ 'Course %s is not free. You have to pay for it before you can download. '
'Use this URL to confirm purchase: %s' % (course_id, checkout_url), expected=True)
enroll_url = unescapeHTML(self._search_regex(
webpage = self._download_webpage(url, lecture_id)
course_id = self._search_regex(
- r'data-course-id=["\'](\d+)', webpage, 'course id')
+ (r'data-course-id=["\'](\d+)', r'"id"\s*:\s*(\d+)'),
+ webpage, 'course id')
try:
lecture = self._download_lecture(course_id, lecture_id)