From 36f601b699e1b3b3172af8780f037ebdc670a88e Mon Sep 17 00:00:00 2001 From: stabbedbybrick <125766685+stabbedbybrick@users.noreply.github.com> Date: Sun, 27 Oct 2024 11:20:57 +0100 Subject: [PATCH] fix(CBC): Remove duplicate chapters --- services/CBC/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/CBC/__init__.py b/services/CBC/__init__.py index bef4a6a..52f7ccc 100644 --- a/services/CBC/__init__.py +++ b/services/CBC/__init__.py @@ -203,7 +203,7 @@ class CBC(Service): chapters = [] if extra.get("chapters"): - chapters = [Chapter(timestamp=x) for x in extra["chapters"].split(",")] + chapters = [Chapter(timestamp=x) for x in set(extra["chapters"].split(","))] if extra.get("credits"): chapters.append(Chapter(name="Credits", timestamp=float(extra["credits"])))