mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-10-31 06:35:12 +00:00 
			
		
		
		
	[ie/youtube] Add tv_simply player client (#13389)
				
					
				
			Authored by: gamer191
This commit is contained in:
		| @@ -11,7 +11,7 @@ class TestGetWebPoContentBinding: | ||||
| 
 | ||||
|     @pytest.mark.parametrize('client_name, context, is_authenticated, expected', [ | ||||
|         *[(client, context, is_authenticated, expected) for client in [ | ||||
|             'WEB', 'MWEB', 'TVHTML5', 'WEB_EMBEDDED_PLAYER', 'WEB_CREATOR', 'TVHTML5_SIMPLY_EMBEDDED_PLAYER'] | ||||
|             'WEB', 'MWEB', 'TVHTML5', 'WEB_EMBEDDED_PLAYER', 'WEB_CREATOR', 'TVHTML5_SIMPLY_EMBEDDED_PLAYER', 'TVHTML5_SIMPLY'] | ||||
|           for context, is_authenticated, expected in [ | ||||
|             (PoTokenContext.GVS, False, ('example-visitor-data', ContentBindingType.VISITOR_DATA)), | ||||
|             (PoTokenContext.PLAYER, False, ('example-video-id', ContentBindingType.VIDEO_ID)), | ||||
|   | ||||
| @@ -49,7 +49,7 @@ class TestWebPoPCSP: | ||||
| 
 | ||||
|     @pytest.mark.parametrize('client_name, context, is_authenticated, remote_host, source_address, request_proxy, expected', [ | ||||
|         *[(client, context, is_authenticated, remote_host, source_address, request_proxy, expected) for client in [ | ||||
|             'WEB', 'MWEB', 'TVHTML5', 'WEB_EMBEDDED_PLAYER', 'WEB_CREATOR', 'TVHTML5_SIMPLY_EMBEDDED_PLAYER'] | ||||
|             'WEB', 'MWEB', 'TVHTML5', 'WEB_EMBEDDED_PLAYER', 'WEB_CREATOR', 'TVHTML5_SIMPLY_EMBEDDED_PLAYER', 'TVHTML5_SIMPLY'] | ||||
|           for context, is_authenticated, remote_host, source_address, request_proxy, expected in [ | ||||
|             (PoTokenContext.GVS, False, 'example-remote-host', 'example-source-address', 'example-request-proxy', {'t': 'webpo', 'ip': 'example-remote-host', 'sa': 'example-source-address', 'px': 'example-request-proxy', 'cb': '123abcXYZ_-', 'cbt': 'visitor_id'}), | ||||
|             (PoTokenContext.PLAYER, False, 'example-remote-host', 'example-source-address', 'example-request-proxy', {'t': 'webpo', 'ip': 'example-remote-host', 'sa': 'example-source-address', 'px': 'example-request-proxy', 'cb': '123abcXYZ_-', 'cbt': 'video_id'}), | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 gamer191
					gamer191