From fbcd543a2629461004719d8c1811d749f299deb2 Mon Sep 17 00:00:00 2001 From: scampower3 <81431263+scampower3@users.noreply.github.com> Date: Wed, 11 Oct 2023 01:49:41 +0800 Subject: [PATCH 1/2] Fix Same year appears in - format under card. --- src/components/cardbuilder/cardBuilder.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/cardbuilder/cardBuilder.js b/src/components/cardbuilder/cardBuilder.js index ef44a1c33..6d33700ca 100644 --- a/src/components/cardbuilder/cardBuilder.js +++ b/src/components/cardbuilder/cardBuilder.js @@ -669,7 +669,7 @@ function getCardFooterText(item, apiClient, options, footerClass, progressHtml, lines.push(globalize.translate('SeriesYearToPresent', productionYear || '')); } else if (item.EndDate && item.ProductionYear) { const endYear = datetime.toLocaleString(datetime.parseISO8601Date(item.EndDate).getFullYear(), { useGrouping: false }); - lines.push(productionYear + ((endYear === item.ProductionYear) ? '' : (' - ' + endYear))); + lines.push(productionYear + ((endYear === productionYear) ? '' : (' - ' + endYear))); } else { lines.push(productionYear || ''); } From 21f2d7ccdf44057170f2760397864f88c96ae675 Mon Sep 17 00:00:00 2001 From: scampower3 <81431263+scampower3@users.noreply.github.com> Date: Wed, 11 Oct 2023 01:50:43 +0800 Subject: [PATCH 2/2] Added myself to CONTRIBUTORS.md --- CONTRIBUTORS.md | 1 + 1 file changed, 1 insertion(+) diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.md index 920fd9288..41fb667ae 100644 --- a/CONTRIBUTORS.md +++ b/CONTRIBUTORS.md @@ -67,6 +67,7 @@ - [sleepycatcoding](https://github.com/sleepycatcoding) - [TheMelmacian](https://github.com/TheMelmacian) - [tehciolo](https://github.com/tehciolo) + - [scampower3](https://github.com/scampower3) # Emby Contributors