From 94965512fe361016bef887e0e04bef1c51300c08 Mon Sep 17 00:00:00 2001 From: Andre <200930841+Andre-Bzk@users.noreply.github.com> Date: Fri, 14 Aug 2026 16:32:27 +0200 Subject: [PATCH] fix: detect youtube shorts and live urls as video sources MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- app/extractors/base.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/extractors/base.py b/app/extractors/base.py index 13d4992..f2a9034 100644 --- a/app/extractors/base.py +++ b/app/extractors/base.py @@ -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",