Add bulk import feature and supported sites display
- Two-tab UI: single import (existing) and bulk import - Bulk mode: paste multiple URLs, choose review-each or auto-import - Review mode: edit each recipe before importing, option to switch to auto mid-way - Auto mode: scrape and import all without manual review - Tag option for auto mode: import all tags or none - Progress table with per-recipe status tracking - Import targets: Mealie, Tandoor, or both - Supported sites shown on both tabs Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
+3
-2
@@ -6,7 +6,7 @@ import traceback
|
||||
from flask import Flask, render_template, request, redirect, url_for, flash, jsonify
|
||||
|
||||
from app import config
|
||||
from app.scraper import scrape
|
||||
from app.scraper import scrape, supported_sites
|
||||
from app.mealie import MealieClient
|
||||
from app.tandoor import TandoorClient
|
||||
|
||||
@@ -93,7 +93,8 @@ def import_page():
|
||||
flash("Először állíts be legalább egy szolgáltatást (Mealie vagy Tandoor).", "warning")
|
||||
return redirect(url_for("settings"))
|
||||
return render_template("import.html", cfg=cfg, version=VERSION,
|
||||
has_mealie=has_mealie, has_tandoor=has_tandoor)
|
||||
has_mealie=has_mealie, has_tandoor=has_tandoor,
|
||||
supported_sites=supported_sites())
|
||||
|
||||
|
||||
@app.route("/scrape", methods=["POST"])
|
||||
|
||||
Reference in New Issue
Block a user