Linting fixes
This commit is contained in:
parent
3502141c62
commit
b146ee71ae
2 changed files with 4 additions and 4 deletions
4
@types/crunchyTypes.d.ts
vendored
4
@types/crunchyTypes.d.ts
vendored
|
|
@ -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 = {
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue