mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-02 17:22:31 +01:00
[udemy] Fix course enroll (Closes #9393)
This commit is contained in:
parent
2a48e6f01a
commit
aabdc83d6e
@ -84,7 +84,8 @@ def combine_url(base_url, url):
|
||||
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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user