mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-10-31 14:45:14 +00:00 
			
		
		
		
	[ap] improve adobe pass names and parse error handling
This commit is contained in:
		| @@ -72,8 +72,8 @@ class AdobePassIE(InfoExtractor): | ||||
|         def raise_mvpd_required(): | ||||
|             raise ExtractorError( | ||||
|                 'This video is only available for users of participating TV providers. ' | ||||
|                 'Use --ap-mso-id to specify Adobe Pass Multiple-system operator Identifier ' | ||||
|                 'and --netrc to provide account credentials.', expected=True) | ||||
|                 'Use --ap-mso to specify Adobe Pass Multiple-system operator Identifier ' | ||||
|                 'and --ap-username and --ap-password or --netrc to provide account credentials.', expected=True) | ||||
|  | ||||
|         mvpd_headers = { | ||||
|             'ap_42': 'anonymous', | ||||
| @@ -91,12 +91,9 @@ class AdobePassIE(InfoExtractor): | ||||
|                 authn_token = None | ||||
|             if not authn_token: | ||||
|                 # TODO add support for other TV Providers | ||||
|                 mso_id = self._downloader.params.get('ap_mso_id') | ||||
|                 mso_id = self._downloader.params.get('ap_mso') | ||||
|                 if not mso_id: | ||||
|                     raise_mvpd_required() | ||||
|                 if mso_id not in MSO_INFO: | ||||
|                     raise ExtractorError( | ||||
|                         'Unsupported TV Provider, use --list-ap-mso-ids to get a list of supported TV Providers' % mso_id, expected=True) | ||||
|                 username, password = self._get_login_info('ap_username', 'ap_password', mso_id) | ||||
|                 if not username or not password: | ||||
|                     raise_mvpd_required() | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Remita Amine
					Remita Amine