mirror of
https://github.com/Andre-Bzk/Rezept0r.git
synced 2026-11-15 09:33:05 +01:00
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:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user