Open Cimmerian-Iter opened 6 months ago
It seems like Crunchyroll disabled the API keys from the version of the Android app that was used for automatic extraction.
I've updated the tweak to use the latest APK version (3.54.0) for automatic extraction in commit 583d1cc, so the newest version of the tweak (v1.0.1) should fix the issue (haven't tested it on my device yet though).
It works, is there a way to automatically update the API keys when a Crunchyroll update is released?
Currently, the location of the API keys in the Android app are hardcoded in the tweak and need to be manually updated for each version of the app. To do that automatically, we'd need to dynamically find the keys, e.g. by programmatically using a decompiler to find the keys in the app or getting the keys from a different source.
I've written a script that should automatically extract and update the API credentials in a repo and made it so the tweak reads the values from there when doing the automatic extraction in v1.2.0.
If this works as planned and as long as they don't change the API again, this should make it so the tweak doesn't need to be updated when the credentials expire.
Perfect, will test it
Edit : it works, let's hope that it'll be resilient with time
We have the "your version is outdated" message. I even reinstalled Crunchyroll and rerun the tweak to get latest creds from latest apk it doesn't work anymore.