mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-21 20:46:36 -05:00
[udemy] Improve course id v4 regex
This commit is contained in:
parent
a7ba57dc17
commit
70cab344c4
1 changed files with 1 additions and 1 deletions
|
@ -144,7 +144,7 @@ def _real_extract(self, url):
|
||||||
webpage = self._download_webpage(url, lecture_id)
|
webpage = self._download_webpage(url, lecture_id)
|
||||||
|
|
||||||
course_id = self._search_regex(
|
course_id = self._search_regex(
|
||||||
(r'data-course-id=["\'](\d+)', r'"id": (\d+)'),
|
(r'data-course-id=["\'](\d+)', r'"id"\s*:\s*(\d+)'),
|
||||||
webpage, 'course id')
|
webpage, 'course id')
|
||||||
|
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in a new issue