1
0
Fork 0
mirror of https://github.com/ytdl-org/youtube-dl.git synced 2024-12-22 00:37:41 +00:00

[udemy] Fix course enroll (Closes #9393)

This commit is contained in:
Sergey M․ 2016-05-04 23:03:44 +06:00
parent 2a48e6f01a
commit aabdc83d6e
No known key found for this signature in database
GPG key ID: 2C393E0F18A9236D

View file

@ -84,7 +84,8 @@ class UdemyIE(InfoExtractor):
if enroll_url:
webpage = self._download_webpage(
combine_url(base_url, enroll_url),
course_id, 'Enrolling in the course')
course_id, 'Enrolling in the course',
headers={'Referer': base_url})
if '>You have enrolled in' in webpage:
self.to_screen('%s: Successfully enrolled in the course' % course_id)