projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
93d0583
)
[udemy] Fix paid course detection (#13943)
author
Sergey M․
<dstftw@gmail.com>
Thu, 17 Aug 2017 16:14:46 +0000
(23:14 +0700)
committer
Sergey M․
<dstftw@gmail.com>
Thu, 17 Aug 2017 16:14:46 +0000
(23:14 +0700)
youtube_dl/extractor/udemy.py
patch
|
blob
|
history
diff --git
a/youtube_dl/extractor/udemy.py
b/youtube_dl/extractor/udemy.py
index 3b02f43e3b22064d88989390f9cdfce0c777ecaf..207c4a6a7ee8131c3e2e5d5823aefb336ad47c47 100644
(file)
--- 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(