commit
ba1e18410a
@ -11,7 +11,7 @@ class ChefTap(Integration):
|
|||||||
|
|
||||||
def import_file_name_filter(self, zip_info_object):
|
def import_file_name_filter(self, zip_info_object):
|
||||||
print("testing", zip_info_object.filename)
|
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):
|
def get_recipe_from_file(self, file):
|
||||||
source_url = ''
|
source_url = ''
|
||||||
|
@ -131,7 +131,7 @@ thus cannot be imported.
|
|||||||
|
|
||||||
## ChefTap
|
## ChefTap
|
||||||
ChefTaps allows you to export your recipes from the app (I think). The export is a zip file containing a folder called
|
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
|
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
|
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
|
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.
|
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.
|
||||||
|
Loading…
Reference in New Issue
Block a user