From b82fc8b3cb753da411e96c9397a923aff82f2d9e Mon Sep 17 00:00:00 2001 From: smoothlystable <20187834+smoothlystable@users.noreply.github.com> Date: Fri, 6 Oct 2023 08:39:14 +0200 Subject: [PATCH] AmazonPrime: Remove [dt./OV] from movie/show title (#344) * AmazonPrime: Remove [dt./OV] from movie/show title * Prettier formatting --- src/services/amazon-prime/AmazonPrimeApi.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/services/amazon-prime/AmazonPrimeApi.ts b/src/services/amazon-prime/AmazonPrimeApi.ts index 860fd5fa..7e7aa6a2 100644 --- a/src/services/amazon-prime/AmazonPrimeApi.ts +++ b/src/services/amazon-prime/AmazonPrimeApi.ts @@ -381,7 +381,7 @@ class _AmazonPrimeApi extends ServiceApi { let season = 0; if (family) { const [seasonInfo, showInfo] = family.tvAncestors; - title = showInfo.catalog.title; + title = showInfo.catalog.title.replace(' [dt./OV]', ''); season = seasonInfo.catalog.seasonNumber; } const { episodeNumber: number = 0, title: episodeTitle } = catalog; @@ -397,7 +397,7 @@ class _AmazonPrimeApi extends ServiceApi { }, }); } else { - const { title } = catalog; + const title = catalog.title.replace(' [dt./OV]', ''); item = new MovieItem({ serviceId, id,