mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-10-31 06:35:12 +00:00 
			
		
		
		
	[soundcloud] Add _extract_urls (#10179)
This commit is contained in:
		| @@ -119,6 +119,12 @@ class SoundcloudIE(InfoExtractor): | |||||||
|     _CLIENT_ID = '02gUJC0hH2ct1EGOcYXQIzRFU91c72Ea' |     _CLIENT_ID = '02gUJC0hH2ct1EGOcYXQIzRFU91c72Ea' | ||||||
|     _IPHONE_CLIENT_ID = '376f225bf427445fc4bfb6b99b72e0bf' |     _IPHONE_CLIENT_ID = '376f225bf427445fc4bfb6b99b72e0bf' | ||||||
|  |  | ||||||
|  |     @staticmethod | ||||||
|  |     def _extract_urls(webpage): | ||||||
|  |         return [m.group('url') for m in re.finditer( | ||||||
|  |             r'<iframe[^>]+src=(["\'])(?P<url>(?:https?://)?(?:w\.)?soundcloud\.com/player.+?)\1', | ||||||
|  |             webpage)] | ||||||
|  |  | ||||||
|     def report_resolve(self, video_id): |     def report_resolve(self, video_id): | ||||||
|         """Report information extraction.""" |         """Report information extraction.""" | ||||||
|         self.to_screen('%s: Resolving id' % video_id) |         self.to_screen('%s: Resolving id' % video_id) | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Sergey M․
					Sergey M․