Skip to content

Commit

Permalink
update auth + addon.xml
Browse files Browse the repository at this point in the history
  • Loading branch information
smirgol committed Jan 16, 2024
1 parent e9ea2d6 commit 19def90
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
3 changes: 2 additions & 1 deletion addon.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<addon id="plugin.video.crunchyroll" name="Crunchyroll" version="3.3.0.13" provider-name="MrKrabat">
<addon id="plugin.video.crunchyroll" name="Crunchyroll" version="3.3.0.14" provider-name="MrKrabat">
<requires>
<import addon="xbmc.python" version="3.0.1"/>
<import addon="script.module.inputstreamhelper" version="0.3.3"/>
Expand All @@ -21,6 +21,7 @@
<disclaimer lang="de_DE">HINWEIS: Du MUSST PREMIUM Mitglied sein um dieses Plugin zu benutzen</disclaimer>
<disclaimer lang="es_ES">Atención: Necesitas ser miembro PREMIUM para utilizar este Plugin</disclaimer>
<news>
v3.3.0.14 (2023.01.16)[CR]- update auth, add new routing, async data fetching, updated language settings, improved bookmarking/favourite support
v3.3.0.13 (2023.01.05)[CR]- improve listing, add crunchylists
v3.3.0.12 (2023.12.30)[CR]- add resume watching, update settings, add skip intro
v3.3.0.11 (2023.12.28)[CR]- improve series filtering, proper labels for soft subtitles
Expand Down
14 changes: 7 additions & 7 deletions resources/lib/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@ class API:
"""Api documentation
https://github.com/CloudMax94/crunchyroll-api/wiki/Api
"""
URL = "https://api.crunchyroll.com/"
VERSION = "1.1.21.0"
TOKEN = "LNDJgOit5yaRIWN"
DEVICE = "com.crunchyroll.windows.desktop"
TIMEOUT = 30
# URL = "https://api.crunchyroll.com/"
# VERSION = "1.1.21.0"
# TOKEN = "LNDJgOit5yaRIWN"
# DEVICE = "com.crunchyroll.windows.desktop"
# TIMEOUT = 30

INDEX_ENDPOINT = "https://beta-api.crunchyroll.com/index/v2"
PROFILE_ENDPOINT = "https://beta-api.crunchyroll.com/accounts/v1/me/profile"
Expand Down Expand Up @@ -70,7 +70,7 @@ class API:
CRUNCHYLISTS_LISTS_ENDPOINT = "https://beta-api.crunchyroll.com/content/v2/{}/custom-lists"
CRUNCHYLISTS_VIEW_ENDPOINT = "https://beta-api.crunchyroll.com/content/v2/{}/custom-lists/{}"

AUTHORIZATION = "Basic b2VkYXJteHN0bGgxanZhd2ltbnE6OWxFaHZIWkpEMzJqdVY1ZFc5Vk9TNTdkb3BkSnBnbzE="
AUTHORIZATION = "Basic bC1wbGZ0bmtneWFycGZxaGpoOC06TVFZX3pDeGlOUFk1RUVPX0xQRk9VNFFaZ1ktWVVZRXM="

def __init__(
self,
Expand Down Expand Up @@ -297,7 +297,7 @@ def write_to_storage(self, account: AccountData) -> bool:

def default_request_headers() -> Dict:
return {
"User-Agent": "Crunchyroll/3.10.0 Android/6.0 okhttp/4.9.1",
"User-Agent": "Crunchyroll/3.47.0 Android/14 okhttp/4.12.0",
"Content-Type": "application/x-www-form-urlencoded"
}

Expand Down

0 comments on commit 19def90

Please sign in to comment.