Linting fixes

This commit is contained in:
AnimeDL 2024-01-30 15:10:43 -08:00
parent 3502141c62
commit b146ee71ae
2 changed files with 4 additions and 4 deletions

View file

@ -33,7 +33,7 @@ export type CrunchyDownloadOptions = {
syncTiming: boolean,
nocleanup: boolean,
chapters: boolean,
apiType: 'web' | 'android'
apiType?: 'web' | 'android'
}
export type CrunchyMultiDownload = {
@ -41,7 +41,7 @@ export type CrunchyMultiDownload = {
all?: boolean,
but?: boolean,
e?: string,
crapi: 'web' | 'android'
crapi?: 'web' | 'android'
}
export type CrunchyMuxOptions = {

View file

@ -2092,7 +2092,7 @@ export default class Crunchy implements ServiceClass {
merger.cleanUp();
}
public async listSeriesID(id: string, apiType: 'android' | 'web'): Promise<{ list: Episode[], data: Record<string, {
public async listSeriesID(id: string, apiType: 'android' | 'web' = 'android'): Promise<{ list: Episode[], data: Record<string, {
items: CrunchyEpisode[];
langs: langsData.LanguageItem[];
}>}> {
@ -2351,7 +2351,7 @@ export default class Crunchy implements ServiceClass {
return seasonsList;
}
public async getSeasonDataById(item: SeriesSearchItem, apiType: 'android' | 'web', log = false){
public async getSeasonDataById(item: SeriesSearchItem, apiType: 'android' | 'web' = 'android', log = false){
if(!this.cmsToken.cms){
console.error('Authentication required!');
return;