From: Sergey M․ Date: Thu, 31 Mar 2016 20:24:22 +0000 (+0600) Subject: [udemy:course] Use new URL format X-Git-Url: http://git.oshgnacknak.de/?a=commitdiff_plain;h=b53a06e3b9f2c4ad86b09d35051f5eff2ad1bff0;p=youtube-dl [udemy:course] Use new URL format --- 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[\da-z-]+)' + _VALID_URL = r'https?://www\.udemy\.com/(?P[^/?#&]+)' _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(), }