1.0.3 release
- Update version number - Remove header update after license request (issue appeared switching between Web/TV decryption during licensing phase)
This commit is contained in:
parent
9349d46546
commit
c4ceb2fe92
@ -25,7 +25,7 @@ class CR(Service):
|
||||
"""
|
||||
Service code for Crunchyroll
|
||||
Author: TPD94
|
||||
Version: 1.0.2
|
||||
Version: 1.0.3
|
||||
Authorization: Cookies for web endpoints, Credentials for TV endpoints, Cookies/Credentials for both. Cookies required.
|
||||
Security: FHD@L3
|
||||
Use Series ID/URL (for example - https://www.crunchyroll.com/series/GG5H5XQ7D/kaiju-no-8) or Series ID (for example - GG5H5XQ7D).
|
||||
@ -36,7 +36,7 @@ class CR(Service):
|
||||
help="""
|
||||
Service code for Crunchyroll\n
|
||||
Author: TPD94\n
|
||||
Version: 1.0.2\n
|
||||
Version: 1.0.3\n
|
||||
Authorization: Cookies for web endpoints, Credentials for TV endpoints, Cookies/Credentials for both. Cookies required.\n
|
||||
Security: FHD@L3\n
|
||||
Use Series ID/URL (for example - https://www.crunchyroll.com/series/GG5H5XQ7D/kaiju-no-8) or Series ID (for example - GG5H5XQ7D).
|
||||
@ -637,15 +637,6 @@ class CR(Service):
|
||||
}
|
||||
)
|
||||
|
||||
## Update the headers to reflect TV device
|
||||
self.session.headers.update({
|
||||
'Accept': 'application/json',
|
||||
'Accept-Charset': 'UTF-8',
|
||||
'Accept-Encoding': 'gzip',
|
||||
'Authorization': f'Bearer {self.auth_token_tv}',
|
||||
'User-Agent': 'Crunchyroll/ANDROIDTV/3.46.0_22275 (Android 16; en-US; AOSP TV on x86)',
|
||||
})
|
||||
|
||||
return license_response.content
|
||||
|
||||
if track.data['endpoint_type'] == 'web':
|
||||
@ -682,11 +673,6 @@ class CR(Service):
|
||||
}
|
||||
)
|
||||
|
||||
# Update the headers to reflect web
|
||||
self.session.headers.update({
|
||||
'Authorization': f'Bearer {self.auth_token_web}',
|
||||
})
|
||||
|
||||
return license_response['license']
|
||||
|
||||
def on_track_downloaded(self, track: AnyTrack) -> None:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user