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: