aboutsummaryrefslogtreecommitdiff
path: root/youtube_dl
diff options
context:
space:
mode:
authorSergey M․ <dstftw@gmail.com>2017-08-17 23:14:46 +0700
committerSergey M․ <dstftw@gmail.com>2017-08-17 23:14:46 +0700
commit5f5c7b92dda1da6a0f15af7e3999a6ff298a8c92 (patch)
tree26c275dd119490dab7c64d795cdeec0fc537ac75 /youtube_dl
parent93d0583e34b0cd826f081a766b00381bb5fed52d (diff)
[udemy] Fix paid course detection (#13943)
Diffstat (limited to 'youtube_dl')
-rw-r--r--youtube_dl/extractor/udemy.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/youtube_dl/extractor/udemy.py b/youtube_dl/extractor/udemy.py
index 3b02f43e3..207c4a6a7 100644
--- a/youtube_dl/extractor/udemy.py
+++ b/youtube_dl/extractor/udemy.py
@@ -74,7 +74,7 @@ class UdemyIE(InfoExtractor):
return compat_urlparse.urljoin(base_url, url) if not url.startswith('http') else url
checkout_url = unescapeHTML(self._search_regex(
- r'href=(["\'])(?P<url>(?:https?://(?:www\.)?udemy\.com)?/payment/checkout/.+?)\1',
+ r'href=(["\'])(?P<url>(?:https?://(?:www\.)?udemy\.com)?/(?:payment|cart)/checkout/.+?)\1',
webpage, 'checkout url', group='url', default=None))
if checkout_url:
raise ExtractorError(