prep for release
This commit is contained in:
parent
fac8abf701
commit
bf33e7567c
8 changed files with 113 additions and 6026 deletions
|
|
@ -18,13 +18,14 @@ export abstract class APIModel {
|
|||
|
||||
abstract getById(id: string): Promise<MediaTypeModel>;
|
||||
|
||||
hasType(type: MediaType): boolean {
|
||||
if (
|
||||
this.types.contains(type) &&
|
||||
(Boolean((this.plugin.settings.apiToggle as any)?.[this.apiName]?.[type]) === true || (this.plugin.settings.apiToggle as any)?.[this.apiName]?.[type] === undefined)
|
||||
) {
|
||||
return true;
|
||||
}
|
||||
hasType(_type: MediaType): boolean {
|
||||
// if (
|
||||
// this.types.contains(type) &&
|
||||
// (Boolean((this.plugin.settings.apiToggle as any)?.[this.apiName]?.[type]) === true || (this.plugin.settings.apiToggle as any)?.[this.apiName]?.[type] === undefined)
|
||||
// ) {
|
||||
// return true;
|
||||
// }
|
||||
return true;
|
||||
}
|
||||
|
||||
hasTypeOverlap(types: MediaType[]): boolean {
|
||||
|
|
|
|||
|
|
@ -143,7 +143,6 @@ export class OMDbAPI extends APIModel {
|
|||
onlineRating: Number.parseFloat(result.imdbRating ?? 0),
|
||||
actors: result.Actors?.split(', ') ?? [],
|
||||
image: result.Poster ?? '',
|
||||
plot: result.Plot ?? '',
|
||||
|
||||
released: true,
|
||||
streamingServices: [],
|
||||
|
|
@ -176,7 +175,6 @@ export class OMDbAPI extends APIModel {
|
|||
onlineRating: Number.parseFloat(result.imdbRating ?? 0),
|
||||
actors: result.Actors?.split(', ') ?? [],
|
||||
image: result.Poster ?? '',
|
||||
plot: result.Plot ?? '',
|
||||
|
||||
released: true,
|
||||
streamingServices: [],
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue