fix(CBC): Remove duplicate chapters

This commit is contained in:
stabbedbybrick 2024-10-27 11:20:57 +01:00
parent 099374ca0c
commit 36f601b699

View File

@ -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"])))