mirror of
https://codeberg.org/polarisfm/youtube-dl
synced 2024-11-26 02:14:32 +01:00
[adobepass] Add mso FX Preview Pass
This commit is contained in:
parent
7dd6ab4a47
commit
b25c7a1e39
@ -1314,6 +1314,9 @@ MSO_INFO = {
|
|||||||
'cou060': {
|
'cou060': {
|
||||||
'name': 'Zito Media'
|
'name': 'Zito Media'
|
||||||
},
|
},
|
||||||
|
'TempPass_fx_60min': {
|
||||||
|
'name': 'FX Preview Pass'
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -1407,9 +1410,11 @@ class AdobePassIE(InfoExtractor):
|
|||||||
mso_id = self._downloader.params.get('ap_mso')
|
mso_id = self._downloader.params.get('ap_mso')
|
||||||
if not mso_id:
|
if not mso_id:
|
||||||
raise_mvpd_required()
|
raise_mvpd_required()
|
||||||
username, password = self._get_login_info('ap_username', 'ap_password', mso_id)
|
if mso_id != 'TempPass_fx_60min':
|
||||||
if not username or not password:
|
# FX Preview Pass doesn't need credentials
|
||||||
raise_mvpd_required()
|
username, password = self._get_login_info('ap_username', 'ap_password', mso_id)
|
||||||
|
if not username or not password:
|
||||||
|
raise_mvpd_required()
|
||||||
mso_info = MSO_INFO[mso_id]
|
mso_info = MSO_INFO[mso_id]
|
||||||
|
|
||||||
provider_redirect_page_res = self._download_webpage_handle(
|
provider_redirect_page_res = self._download_webpage_handle(
|
||||||
@ -1491,6 +1496,9 @@ class AdobePassIE(InfoExtractor):
|
|||||||
}), headers={
|
}), headers={
|
||||||
'Content-Type': 'application/x-www-form-urlencoded'
|
'Content-Type': 'application/x-www-form-urlencoded'
|
||||||
})
|
})
|
||||||
|
elif mso_id == 'TempPass_fx_60min':
|
||||||
|
# FX Preview Pass doesn't require a login
|
||||||
|
pass
|
||||||
else:
|
else:
|
||||||
# Some providers (e.g. DIRECTV NOW) have another meta refresh
|
# Some providers (e.g. DIRECTV NOW) have another meta refresh
|
||||||
# based redirect that should be followed.
|
# based redirect that should be followed.
|
||||||
|
Loading…
Reference in New Issue
Block a user