fixed plan to eat and mealmaster imports
This commit is contained in:
parent
9ae076e426
commit
1e6ba924ab
@ -63,7 +63,7 @@ class MealMaster(Integration):
|
|||||||
current_recipe = ''
|
current_recipe = ''
|
||||||
|
|
||||||
for fl in file.readlines():
|
for fl in file.readlines():
|
||||||
line = fl.decode("ANSI")
|
line = fl.decode("windows-1250")
|
||||||
if (line.startswith('MMMMM') or line.startswith('-----')) and 'meal-master' in line.lower():
|
if (line.startswith('MMMMM') or line.startswith('-----')) and 'meal-master' in line.lower():
|
||||||
if current_recipe != '':
|
if current_recipe != '':
|
||||||
recipe_list.append(current_recipe)
|
recipe_list.append(current_recipe)
|
||||||
|
@ -78,7 +78,7 @@ class Plantoeat(Integration):
|
|||||||
current_recipe = ''
|
current_recipe = ''
|
||||||
|
|
||||||
for fl in file.readlines():
|
for fl in file.readlines():
|
||||||
line = fl.decode("ANSI")
|
line = fl.decode("windows-1250")
|
||||||
if line.startswith('--------------'):
|
if line.startswith('--------------'):
|
||||||
if current_recipe != '':
|
if current_recipe != '':
|
||||||
recipe_list.append(current_recipe)
|
recipe_list.append(current_recipe)
|
||||||
|
Loading…
Reference in New Issue
Block a user