From fea45c5ed62b2076c41b06078763c7080badcb18 Mon Sep 17 00:00:00 2001 From: stabbedbybrick <125766685+stabbedbybrick@users.noreply.github.com> Date: Mon, 8 Jul 2024 11:41:58 +0200 Subject: [PATCH] fix(UKTV): Fix episode duration --- services/UKTV/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/services/UKTV/__init__.py b/services/UKTV/__init__.py index e699afe..2639889 100644 --- a/services/UKTV/__init__.py +++ b/services/UKTV/__init__.py @@ -186,8 +186,8 @@ class UKTV(Service): period_duration = manifest.get("mediaPresentationDuration") period_duration = DASH.pt_to_sec(period_duration) - _, minutes, seconds = str(timedelta(seconds=period_duration - 6)).split(":") - new_duration = f"PT{int(minutes)}M{float(seconds):.3f}S" + hours, minutes, seconds = str(timedelta(seconds=period_duration - 6)).split(":") + new_duration = f"PT{hours}H{minutes}M{seconds}S" manifest.set("mediaPresentationDuration", new_duration) return etree.tostring(manifest, encoding="unicode")