From 316c268256845733d1038e4892ddc310168e2d7f Mon Sep 17 00:00:00 2001 From: "Michael K. Avanessian" Date: Fri, 5 Apr 2024 16:27:07 -0700 Subject: [PATCH] Bugfix for 'item(...).replace is not a function' --- VERSION | 2 +- upcoming-media-card.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/VERSION b/VERSION index cb0c939..b4a2fb2 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.5.2 +0.5.3 diff --git a/upcoming-media-card.js b/upcoming-media-card.js index 8b61074..e226c30 100644 --- a/upcoming-media-card.js +++ b/upcoming-media-card.js @@ -590,7 +590,7 @@ class UpcomingMediaCard extends HTMLElement { $genres: item("genres") || null, $number: item("number") || null, $rating: item("rating") || null, - $release: item("release").replace("$date", format_date(item("airdate"), dateform)).replace("$year", format_date(item("airdate"), "yy")).replace(" $time", "  $time") || null, + $release: (item("release") || '').replace("$date", format_date(item("airdate"), dateform)).replace("$year", format_date(item("airdate"), "yy")).replace(" $time", "  $time") || null, $studio: item("studio") || null, $price: item("price") || null, $album: item("album") || null,