TheMealDB.com - An Open Recipe Database with API
#61
Hi,

Its a nice API, can I use the same for iOS application, I am learning the app development and interested in releasing an app with Food Recipes. How to obtain API key.
Reply
#62
Check the API page for details on how to get a production key. You only need this when you are ready to publish to the app store though.
[Image: addon-TheMealDB-blue.svg] [Image: skin-EstuaryATF-green.svg]
Reply
#63
Thank you for Kodi kitchen, themealdb.com is really cool idea!

when I select ingredient picker Kodi crashes on OS X v. 17.6 and Libreelec v. 17.6 

log osx:
                                            ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.KeyError'>
                                            Error Contents: ('strIngredient1',)
                                            Traceback (most recent call last):
                                              File "/Users/osx/Library/Application Support/Kodi/addons/script.screensaver.themealdb/interface.py", line 339, in onClick
                                                self.ingredient_picker()
                                              File "/Users/osx/Library/Application Support/Kodi/addons/script.screensaver.themealdb/interface.py", line 125, in ingredient_picker
                                                categories = mealsdb_api.List().ingredient()
                                              File "/Users/osx/Library/Application Support/Kodi/addons/script.screensaver.themealdb/resources/lib/themealdb.py", line 115, in ingredient
                                                if item["strIngredient1"]: return_list.append(item["strIngredient1"])
                                            KeyError: ('strIngredient1',)
                                            -->End of Python script error report<--


and log libreelec
                                            Error Type: <type 'exceptions.KeyError'>
                                            Error Contents: ('strIngredient1',)
                                            Traceback (most recent call last):
                                              File "/storage/.kodi/addons/script.screensaver.themealdb/interface.py", line 339, in onClick
                                                self.ingredient_picker()
                                              File "/storage/.kodi/addons/script.screensaver.themealdb/interface.py", line 125, in ingredient_picker
                                                categories = mealsdb_api.List().ingredient()
                                              File "/storage/.kodi/addons/script.screensaver.themealdb/resources/lib/themealdb.py", line 115, in ingredient
                                                if item["strIngredient1"]: return_list.append(item["strIngredient1"])
                                            KeyError: ('strIngredient1',)
                                            -->End of Python script error report<--

thank you


Reply
#64
Yep there is an updated version if the Kodi Add-on that is on my repo (sadly got banned so I can't post it here). I did try and update it on the official kodi repo but got lost in GitHub madness.

But here is the source where you can download the zip:

https://github.com/zag2me/script.screensaver.themealdb

Latest version is 1.0.2 which fixes the ingredients errors.
[Image: addon-TheMealDB-blue.svg] [Image: skin-EstuaryATF-green.svg]
Reply
#65
works great!!!!  Thank you!!!!!
banned...that is crazy.  sorry
is there a 1.0.3?


Reply
#66
Not yet but as I get better at Python I am going to fix the description size and a few overlays that show up too long and convert to python 3.

@enen92 wrote the original Add-on so I will probably need his help at some point Smile
[Image: addon-TheMealDB-blue.svg] [Image: skin-EstuaryATF-green.svg]
Reply
#67
thank you for all your work.


Reply
#68
No problem, there is a dedicated thread for the Kodi Add-on here:

https://forum.kodi.tv/showthread.php?tid=322257
[Image: addon-TheMealDB-blue.svg] [Image: skin-EstuaryATF-green.svg]
Reply
#69
Added some new Chinese Recipes

Image

https://www.themealdb.com/browse.php?a=Chinese
[Image: addon-TheMealDB-blue.svg] [Image: skin-EstuaryATF-green.svg]
Reply
#70
Hi there! great api, thx. I'm doing simple app in react, random recipes don't render picture very often (I mean like for 10 cliks I get picture maybe 4 of them....). Does every meal has a picture in api? I guess it's my mistake just want to be sure is suppose to be pic for every meal, yes? cheers
Reply
#71
Yes all meals have an image as far as I am aware.
[Image: addon-TheMealDB-blue.svg] [Image: skin-EstuaryATF-green.svg]
Reply
 
Thread Rating:
  • 1 Vote(s) - 5 Average



Logout Mark Read Team Forum Stats Members Help
TheMealDB.com - An Open Recipe Database with API51