mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-10-31 06:35:12 +00:00 
			
		
		
		
	[utils] Add parse_qs
				
					
				
			This commit is contained in:
		| @@ -4,13 +4,12 @@ from __future__ import unicode_literals | ||||
|  | ||||
| from .common import InfoExtractor | ||||
| from ..compat import ( | ||||
|     compat_parse_qs, | ||||
|     compat_str, | ||||
|     compat_urllib_parse_urlparse, | ||||
| ) | ||||
| from ..utils import ( | ||||
|     determine_ext, | ||||
|     int_or_none, | ||||
|     parse_qs, | ||||
|     try_get, | ||||
|     qualities, | ||||
| ) | ||||
| @@ -78,7 +77,7 @@ class SixPlayIE(InfoExtractor): | ||||
|                 continue | ||||
|             if container == 'm3u8' or ext == 'm3u8': | ||||
|                 if protocol == 'usp': | ||||
|                     if compat_parse_qs(compat_urllib_parse_urlparse(asset_url).query).get('token', [None])[0]: | ||||
|                     if parse_qs(asset_url).get('token', [None])[0]: | ||||
|                         urlh = self._request_webpage( | ||||
|                             asset_url, video_id, fatal=False, | ||||
|                             headers=self.geo_verification_headers()) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 pukkandan
					pukkandan