From: Sergey M․ Date: Wed, 4 May 2016 17:03:44 +0000 (+0600) Subject: [udemy] Fix course enroll (Closes #9393) X-Git-Url: https://git.cielonegro.org/gitweb.cgi?a=commitdiff_plain;h=aabdc83d6e9ea1e6a28c48cb228a644c55fc11b3;p=youtube-dl.git [udemy] Fix course enroll (Closes #9393) --- 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)