From 681c57201a176f5615a195868fdde68f89010d81 Mon Sep 17 00:00:00 2001 From: Modded Gamers <35778371+ModdedGamers@users.noreply.github.com> Date: Sun, 28 Mar 2021 12:37:59 -0400 Subject: [PATCH 1/2] Cheftap import tweak When I submitted my testing .zip, I didn't submit my normal export, because that has some personal data in the recipes. Instead, I made one by had, which was a mistake. The folder contained inside is also called cheftap_export. --- cookbook/integration/cheftap.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cookbook/integration/cheftap.py b/cookbook/integration/cheftap.py index 5deb9313..b7625283 100644 --- a/cookbook/integration/cheftap.py +++ b/cookbook/integration/cheftap.py @@ -11,7 +11,7 @@ class ChefTap(Integration): def import_file_name_filter(self, zip_info_object): print("testing", zip_info_object.filename) - return re.match(r'^recipes/([A-Za-z\d\w\s-])+.txt$', zip_info_object.filename) + return re.match(r'^cheftap_export/([A-Za-z\d\w\s-])+.txt$', zip_info_object.filename) def get_recipe_from_file(self, file): source_url = '' From 6334bee608660e0c3e6388a878c8276ea2f86c15 Mon Sep 17 00:00:00 2001 From: Modded Gamers <35778371+ModdedGamers@users.noreply.github.com> Date: Sun, 28 Mar 2021 12:38:56 -0400 Subject: [PATCH 2/2] Update import_export.md --- docs/features/import_export.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/features/import_export.md b/docs/features/import_export.md index 934f7208..4abc377f 100644 --- a/docs/features/import_export.md +++ b/docs/features/import_export.md @@ -121,7 +121,7 @@ thus cannot be imported. ## ChefTap ChefTaps allows you to export your recipes from the app (I think). The export is a zip file containing a folder called -`recipes` which in turn contains `.txt` files with your recipes. +`cheftap_export` which in turn contains `.txt` files with your recipes. This format is basically completely unstructured and every export looks different. This makes importing it very hard and leads to suboptimal results. Images are also not supported as they are not included in the export (at least @@ -130,4 +130,4 @@ the tests I had). Usually the import should recognize all ingredients and put everything else into the instructions. If you import fails or is worse than this feel free to provide me with more example data and I can try to improve the importer. -As ChefTap cannot import these files anyway there won't be an exporter implemented in Tandoor. \ No newline at end of file +As ChefTap cannot import these files anyway there won't be an exporter implemented in Tandoor.