If new chapter request fails, use old request. Also adds new option to enable chapter downloading, `--chapters`
26 lines
No EOL
595 B
TypeScript
26 lines
No EOL
595 B
TypeScript
export interface CrunchyChapters {
|
|
[key: string]: CrunchyChapter;
|
|
lastUpdate: Date;
|
|
mediaId: string;
|
|
}
|
|
|
|
export interface CrunchyChapter {
|
|
approverId: string;
|
|
distributionNumber: string;
|
|
end: number;
|
|
start: number;
|
|
title: string;
|
|
seriesId: string;
|
|
new: boolean;
|
|
type: string;
|
|
}
|
|
|
|
export interface CrunchyOldChapter {
|
|
media_id: string;
|
|
startTime: number;
|
|
endTime: number;
|
|
duration: number;
|
|
comparedWith: string;
|
|
ordering: string;
|
|
last_updated: Date;
|
|
} |