fix(CBC): Remove duplicate chapters
This commit is contained in:
parent
099374ca0c
commit
36f601b699
@ -203,7 +203,7 @@ class CBC(Service):
|
|||||||
|
|
||||||
chapters = []
|
chapters = []
|
||||||
if extra.get("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"):
|
if extra.get("credits"):
|
||||||
chapters.append(Chapter(name="Credits", timestamp=float(extra["credits"])))
|
chapters.append(Chapter(name="Credits", timestamp=float(extra["credits"])))
|
||||||
|
Loading…
Reference in New Issue
Block a user