Skip to content

Commit

Permalink
Hotfix for CR
Browse files Browse the repository at this point in the history
This does not include DRM decryption, that will come later, however, this does work for however long CR allows it to.
  • Loading branch information
AnimeDL committed Dec 15, 2023
1 parent 31867e2 commit df7dd06
Show file tree
Hide file tree
Showing 4 changed files with 152 additions and 71 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,7 @@ gui/react/build/
docker-compose.yml
crunchyendpoints
.vscode
/logs
/tmp/*/
/videos/*/
/tmp/*.*
56 changes: 56 additions & 0 deletions @types/crunchyAndroidStreams.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
export interface CrunchyAndroidStreams {

Check warning on line 1 in @types/crunchyAndroidStreams.d.ts

View workflow job for this annotation

GitHub Actions / eslint

Expected linebreaks to be 'CRLF' but found 'LF'
__class__: string;

Check warning on line 2 in @types/crunchyAndroidStreams.d.ts

View workflow job for this annotation

GitHub Actions / eslint

Expected linebreaks to be 'CRLF' but found 'LF'
__href__: string;

Check warning on line 3 in @types/crunchyAndroidStreams.d.ts

View workflow job for this annotation

GitHub Actions / eslint

Expected linebreaks to be 'CRLF' but found 'LF'
__resource_key__: string;

Check warning on line 4 in @types/crunchyAndroidStreams.d.ts

View workflow job for this annotation

GitHub Actions / eslint

Expected linebreaks to be 'CRLF' but found 'LF'
__links__: Links;

Check warning on line 5 in @types/crunchyAndroidStreams.d.ts

View workflow job for this annotation

GitHub Actions / eslint

Expected linebreaks to be 'CRLF' but found 'LF'
__actions__: Actions;

Check warning on line 6 in @types/crunchyAndroidStreams.d.ts

View workflow job for this annotation

GitHub Actions / eslint

Expected linebreaks to be 'CRLF' but found 'LF'
media_id: string;

Check warning on line 7 in @types/crunchyAndroidStreams.d.ts

View workflow job for this annotation

GitHub Actions / eslint

Expected linebreaks to be 'CRLF' but found 'LF'
audio_locale: string;

Check warning on line 8 in @types/crunchyAndroidStreams.d.ts

View workflow job for this annotation

GitHub Actions / eslint

Expected linebreaks to be 'CRLF' but found 'LF'
subtitles: { [key: string]: Subtitle };

Check warning on line 9 in @types/crunchyAndroidStreams.d.ts

View workflow job for this annotation

GitHub Actions / eslint

Expected linebreaks to be 'CRLF' but found 'LF'
closed_captions: Actions;

Check warning on line 10 in @types/crunchyAndroidStreams.d.ts

View workflow job for this annotation

GitHub Actions / eslint

Expected linebreaks to be 'CRLF' but found 'LF'
streams: Streams;
bifs: string[];
versions: Version[];
captions: Actions;
}

export interface Actions {
}

export interface Links {
resource: Resource;
}

export interface Resource {
href: string;
}

export interface Streams {
[key: string]: { [key: string]: Download };
}

export interface Download {
hardsub_locale: string;
hardsub_lang?: string;
url: string;
}

export interface Urls {
'': Download;
}

export interface Subtitle {
locale: string;
url: string;
format: string;
}

export interface Version {
audio_locale: string;
guid: string;
original: boolean;
variant: string;
season_guid: string;
media_guid: string;
is_premium_only: boolean;
}
Loading

0 comments on commit df7dd06

Please sign in to comment.