diff options
author | Sergey M․ <dstftw@gmail.com> | 2016-05-04 23:03:44 +0600 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2016-05-04 23:03:44 +0600 |
commit | aabdc83d6e9ea1e6a28c48cb228a644c55fc11b3 (patch) | |
tree | 0b8217acd3e7fb8b4f0ab826fa664faccf2253ae /youtube_dl/extractor/udemy.py | |
parent | 2a48e6f01a20545cd117cacb78463dba87d97b21 (diff) |
[udemy] Fix course enroll (Closes #9393)
Diffstat (limited to 'youtube_dl/extractor/udemy.py')
-rw-r--r-- | youtube_dl/extractor/udemy.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/youtube_dl/extractor/udemy.py b/youtube_dl/extractor/udemy.py index d1e6f2703..7ebd231f0 100644 --- a/youtube_dl/extractor/udemy.py +++ b/youtube_dl/extractor/udemy.py @@ -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) |