mirror of
https://github.com/nirvana-7777/script.service.ultimate.git
synced 2026-09-23 17:42:19 +02:00
Correct RTL auth token header
This commit is contained in:
@@ -94,11 +94,10 @@ class RTLPlusHeaders:
|
||||
def get_drm_headers(access_token: str, device_id: str = None, user_agent: str = None) -> dict:
|
||||
"""Get headers for DRM license requests"""
|
||||
return {
|
||||
'X-Auth-Token': f'Bearer {access_token}',
|
||||
'X-Auth-Token': access_token,
|
||||
'X-Device-Id': device_id or RTLPlusDefaults.DEVICE_ID,
|
||||
'X-Device-Name': RTLPlusDefaults.DEVICE_NAME,
|
||||
'User-Agent': user_agent or RTLPlusDefaults.USER_AGENT,
|
||||
'Content-Type': 'application/octet-stream',
|
||||
'Origin': RTLPlusDefaults.BASE_WEBSITE.rstrip('/'),
|
||||
'Referer': RTLPlusDefaults.BASE_WEBSITE
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user