2025-08-26 12:22:10 +05:00
|
|
|
export type CrunchyrollAppCredentials = {
|
2025-03-26 13:19:45 +05:00
|
|
|
// Crunchyroll app ID
|
|
|
|
|
id: string;
|
|
|
|
|
// Crunchyroll app secret
|
|
|
|
|
secret: string;
|
|
|
|
|
// Base64 encoded `id:secret` string
|
|
|
|
|
encoded: string;
|
2025-08-26 12:22:10 +05:00
|
|
|
// Ready HTTP header in the format `Basic <encoded>`, can be used to access some Crunchyroll APIs
|
2025-08-23 21:14:56 +05:00
|
|
|
authorization: string;
|
2025-08-26 12:22:10 +05:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Extract credentials from the Crunchyroll Android APK using jadx.
|
|
|
|
|
*/
|
|
|
|
|
export function extract(options?: {
|
|
|
|
|
target?: 'mobile' | 'tv';
|
|
|
|
|
output?: string;
|
|
|
|
|
cleanup?: boolean;
|
|
|
|
|
}): Promise<CrunchyrollAppCredentials>;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* Fetch ready credentials from the GitHub repository.
|
|
|
|
|
*/
|
|
|
|
|
export function pull(options?: { target: 'mobile' | 'tv' }): Promise<CrunchyrollAppCredentials>;
|