prep for release

This commit is contained in:
Moritz Jung 2024-06-02 20:05:51 +02:00
parent fac8abf701
commit bf33e7567c
8 changed files with 113 additions and 6026 deletions

View file

@ -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 {

View file

@ -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: [],