Updated image url for omdb and steam

changed steam to a vertical poster to fit the other posters and upgraded the quality of omdb from SX300 to SX600
This commit is contained in:
ltctceplrm 2025-05-11 17:26:51 +02:00
parent 657668dc7d
commit a615e7f768
3 changed files with 31 additions and 4 deletions

View file

@ -151,7 +151,7 @@ export class OMDbAPI extends APIModel {
duration: result.Runtime ?? 'unknown',
onlineRating: Number.parseFloat(result.imdbRating ?? 0),
actors: result.Actors?.split(', ') ?? [],
image: result.Poster ?? '',
image: result.Poster ? result.Poster.replace('_SX300', '_SX600') : '',
released: true,
streamingServices: [],
@ -181,7 +181,7 @@ export class OMDbAPI extends APIModel {
duration: result.Runtime ?? 'unknown',
onlineRating: Number.parseFloat(result.imdbRating ?? 0),
actors: result.Actors?.split(', ') ?? [],
image: result.Poster ?? '',
image: result.Poster ? result.Poster.replace('_SX300', '_SX600') : '',
released: true,
streamingServices: [],
@ -209,7 +209,7 @@ export class OMDbAPI extends APIModel {
publishers: [],
genres: result.Genre?.split(', ') ?? [],
onlineRating: Number.parseFloat(result.imdbRating ?? 0),
image: result.Poster ?? '',
image: result.Poster ? result.Poster.replace('_SX300', '_SX600') : '',
released: true,
releaseDate: this.plugin.dateFormatter.format(result.Released, this.apiDateFormat) ?? 'unknown',