mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-11-04 08:35:12 +00:00 
			
		
		
		
	[udemy] Improve course id v4 regex
This commit is contained in:
		@@ -144,7 +144,7 @@ class UdemyIE(InfoExtractor):
 | 
			
		||||
        webpage = self._download_webpage(url, lecture_id)
 | 
			
		||||
 | 
			
		||||
        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')
 | 
			
		||||
 | 
			
		||||
        try:
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user