Merge pull request #510 from ModdedGamers/develop

Cheftap import tweak
This commit is contained in:
vabene1111 2021-03-28 19:08:47 +02:00 committed by GitHub
commit ba1e18410a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -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 = ''

View File

@ -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.
As ChefTap cannot import these files anyway there won't be an exporter implemented in Tandoor.