mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-10-31 14:45:14 +00:00 
			
		
		
		
	[utils] Add parse_qs
				
					
				
			This commit is contained in:
		| @@ -2,11 +2,11 @@ | ||||
| from __future__ import unicode_literals | ||||
|  | ||||
| from .common import InfoExtractor | ||||
| from ..compat import compat_urlparse | ||||
| from ..utils import ( | ||||
|     int_or_none, | ||||
|     orderedSet, | ||||
|     parse_duration, | ||||
|     parse_qs, | ||||
|     qualities, | ||||
|     unified_strdate, | ||||
|     xpath_text | ||||
| @@ -53,7 +53,7 @@ class EuropaIE(InfoExtractor): | ||||
|                 if items.get(p): | ||||
|                     return items[p] | ||||
|  | ||||
|         query = compat_urlparse.parse_qs(compat_urlparse.urlparse(url).query) | ||||
|         query = parse_qs(url) | ||||
|         preferred_lang = query.get('sitelang', ('en', ))[0] | ||||
|  | ||||
|         preferred_langs = orderedSet((preferred_lang, 'en', 'int')) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 pukkandan
					pukkandan