From e2f28ff4cbedd00f1c01031fcb5aa56f04061e7a Mon Sep 17 00:00:00 2001 From: zisisp Date: Mon, 16 Feb 2026 22:47:51 +0200 Subject: [PATCH] skills/video-quote-finder: strip URL fragments before adding timestamp --- skills/video-quote-finder/scripts/find_quote_timestamp.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/skills/video-quote-finder/scripts/find_quote_timestamp.py b/skills/video-quote-finder/scripts/find_quote_timestamp.py index 090de3be7f..ce6da08572 100755 --- a/skills/video-quote-finder/scripts/find_quote_timestamp.py +++ b/skills/video-quote-finder/scripts/find_quote_timestamp.py @@ -19,8 +19,9 @@ def ts_to_seconds(ts: str) -> int: def with_timestamp_url(url: str, ts: str) -> str: sec = ts_to_seconds(ts) - joiner = '&' if '?' in url else '?' - return f"{url}{joiner}t={sec}s" + base_url = url.split('#', 1)[0] # drop fragment so query params are honored + joiner = '&' if '?' in base_url else '?' + return f"{base_url}{joiner}t={sec}s" def run_extract(url: str) -> str: