Loading page...Загружаем страницу...正在加载页面...
AtlasRepo

How Much of a 900-Recipe Paprika Library Actually Survives the Import into Mealie, and How to Repair the Rest

Описание и применение

Импорт 900 рецептов из Paprika в Mealie сохраняет только базовый контент, но теряет структурированные метаданные. С помощью небольшого скрипта на Python можно восстановить поля ингредиентов, сложности, масштаба, избранного и питания, получив полноценную библиотеку.

Задача

Importing a large Paprika recipe library into Mealie loses structured metadata, ingredient quantities, additional photos, and user‑specific flags, making the resulting library incomplete and unstructured.

Результат

The import preserves basic recipe content but loses structured metadata. A short Python script can patch Mealie via its API to restore ingredient structure, difficulty, scale, favorites, and nutrition, resulting in a functional, queryable library.

Рабочий процесс

  • 1. Verify Paprika export size and count with unzip -l library.paprikarecipes | wc -l.
  • 2. Increase nginx client_max_body_size if needed to allow upload of the large .paprikarecipes file.
  • 3. Upload the file via Mealie’s Migrations page and wait for the import to finish.
  • 4. Run a script (Python 3) that paginates /api/recipes, parses each recipe’s ingredient text, and patches Mealie with structured quantity, unit, and food fields using the Mealie API.
  • 5. For each recipe, also patch missing fields: difficulty, scale, favorites, and nutrition if desired.
  • 6. Verify that primary photos are present and additional photos are handled if needed.
  • 7. Test scaling, shopping list aggregation, and filtering to confirm repair.
  • 8. Optionally run the import on a throwaway Mealie instance first to avoid idempotency issues.
  • 9. Document any remaining gaps and plan manual corrections if necessary.

Доказательства

The import itself runs inside the instance, from the Migrations page under group data management. You upload the .paprikarecipes file through the browser, so the whole library crosses your reverse proxy in one request.

Источник

Treat this as two separate jobs, the import itself, which is one file upload and a few minutes of waiting, and a scripted repair pass against the Mealie API, which is where the actual work sits.

Источник

  • Дата записи: 2026-09-21T22:45:26.173Z