From 4248684ea5f5c3d92ee525a6b7d364b33799675d Mon Sep 17 00:00:00 2001 From: stabbedbybrick <125766685+stabbedbybrick@users.noreply.github.com> Date: Fri, 12 Apr 2024 10:32:57 +0200 Subject: [PATCH] fix(ROKU): Fix invalid timestamps --- services/ROKU/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/ROKU/__init__.py b/services/ROKU/__init__.py index 96c59df..8efcc43 100644 --- a/services/ROKU/__init__.py +++ b/services/ROKU/__init__.py @@ -206,7 +206,7 @@ class ROKU(Service): chapters = [] if track.data.get("playbackMedia", {}).get("adBreaks"): timestamps = sorted(track.data["playbackMedia"]["adBreaks"]) - chapters = [Chapter(name=f"Chapter {i + 1:02}", timestamp=ad) for i, ad in enumerate(timestamps)] + chapters = [Chapter(name=f"Chapter {i + 1:02}", timestamp=ad.split(".")[0]) for i, ad in enumerate(timestamps)] if track.data.get("playbackMedia", {}).get("creditCuePoints"): chapters.append(