mirror of
				https://github.com/ytdl-org/youtube-dl
				synced 2025-11-04 03:33:46 +00:00 
			
		
		
		
	[mixcloud] Fix extraction (closes #13958)
This commit is contained in:
		
							parent
							
								
									ea004d34f8
								
							
						
					
					
						commit
						d14d9d8903
					
				@ -91,9 +91,11 @@ class MixcloudIE(InfoExtractor):
 | 
				
			|||||||
            if js_url:
 | 
					            if js_url:
 | 
				
			||||||
                js = self._download_webpage(js_url, track_id, fatal=False)
 | 
					                js = self._download_webpage(js_url, track_id, fatal=False)
 | 
				
			||||||
                if js:
 | 
					                if js:
 | 
				
			||||||
 | 
					                    KEY_RE_TEMPLATE = r'player\s*:\s*{.*?\b%s\s*:\s*(["\'])(?P<key>(?:(?!\1).)+)\1'
 | 
				
			||||||
 | 
					                    for key_name in ('value', 'key_value'):
 | 
				
			||||||
                        key = self._search_regex(
 | 
					                        key = self._search_regex(
 | 
				
			||||||
                        r'player\s*:\s*{.*?\bvalue\s*:\s*(["\'])(?P<key>(?:(?!\1).)+)\1',
 | 
					                            KEY_RE_TEMPLATE % key_name, js, 'key',
 | 
				
			||||||
                        js, 'key', default=None, group='key')
 | 
					                            default=None, group='key')
 | 
				
			||||||
                        if key and isinstance(key, compat_str):
 | 
					                        if key and isinstance(key, compat_str):
 | 
				
			||||||
                            self._keys.insert(0, key)
 | 
					                            self._keys.insert(0, key)
 | 
				
			||||||
                            self._current_key = key
 | 
					                            self._current_key = key
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user