From c4ceb2fe927df5104e7dead166ecb17846ae1616 Mon Sep 17 00:00:00 2001 From: TPD94 Date: Mon, 6 Oct 2025 10:10:30 -0400 Subject: [PATCH] 1.0.3 release - Update version number - Remove header update after license request (issue appeared switching between Web/TV decryption during licensing phase) --- CR/__init__.py | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) diff --git a/CR/__init__.py b/CR/__init__.py index 1ef8a18..1b328a2 100644 --- a/CR/__init__.py +++ b/CR/__init__.py @@ -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: