diff options
author | Sergey M․ <dstftw@gmail.com> | 2016-04-01 02:24:22 +0600 |
---|---|---|
committer | Sergey M․ <dstftw@gmail.com> | 2016-04-01 02:24:22 +0600 |
commit | b53a06e3b9f2c4ad86b09d35051f5eff2ad1bff0 (patch) | |
tree | 14ae06abd6057dc6f34010b1cd64faaf9b6972a8 | |
parent | 4ecc1fc6387d900b7d61d43a112becff9e293206 (diff) |
[udemy:course] Use new URL format
-rw-r--r-- | youtube_dl/extractor/udemy.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/youtube_dl/extractor/udemy.py b/youtube_dl/extractor/udemy.py index e91cf44fe..a788cdd77 100644 --- a/youtube_dl/extractor/udemy.py +++ b/youtube_dl/extractor/udemy.py @@ -305,7 +305,7 @@ class UdemyIE(InfoExtractor): class UdemyCourseIE(UdemyIE): IE_NAME = 'udemy:course' - _VALID_URL = r'https?://www\.udemy\.com/(?P<id>[\da-z-]+)' + _VALID_URL = r'https?://www\.udemy\.com/(?P<id>[^/?#&]+)' _TESTS = [] @classmethod @@ -338,7 +338,7 @@ class UdemyCourseIE(UdemyIE): if lecture_id: entry = { '_type': 'url_transparent', - 'url': 'https://www.udemy.com/%s/#/lecture/%s' % (course_path, entry['id']), + 'url': 'https://www.udemy.com/%s/learn/v4/t/lecture/%s' % (course_path, entry['id']), 'title': entry.get('title'), 'ie_key': UdemyIE.ie_key(), } |