fix: detect youtube shorts and live urls as video sources

Only the classic watch URL was recognised, so a shorts link fell through
to the website extractor. That path fetches the page, finds no recipe
markup in what is a JavaScript shell, and hands the raw text to the
language model, which returns an empty recipe titled "null" — stored in
the history as an apparently successful extraction rather than an error.

Shorts are among the most common formats for recipe clips, so the
failure mode was both frequent and silent. Live URLs share the pattern.
This commit is contained in:
Andre
2026-08-14 16:32:27 +02:00
parent 77c63770c3
commit 94965512fe
+2
View File
@@ -3,6 +3,8 @@ import re
VIDEO_PATTERNS = [
r"youtube\.com/watch",
r"youtube\.com/shorts/",
r"youtube\.com/live/",
r"youtu\.be/",
r"tiktok\.com/",
r"instagram\.com/reel",