diff --git a/cookbook/integration/cheftap.py b/cookbook/integration/cheftap.py index 5deb9313e..b76252839 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 = '' diff --git a/docs/features/import_export.md b/docs/features/import_export.md index 9c0c866d7..1b47d8543 100644 --- a/docs/features/import_export.md +++ b/docs/features/import_export.md @@ -131,7 +131,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 @@ -140,4 +140,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.