Fix timestamp parsing by correcting string slicing for start time #40

Merged
retoor merged 2 commits from :bugfix/youtube-timestamp into main 2025-05-23 18:13:50 +02:00

View File

@ -118,7 +118,7 @@ def embed_youtube(text):
queries["start"] = [] queries["start"] = []
for t in start_time: for t in start_time:
if t.endswith("s"): if t.endswith("s"):
t = start_time[:-1] t = t[:-1]
if t.isdigit(): if t.isdigit():
queries["start"].append(t) queries["start"].append(t)
else: else: