TheMealDB.com - An Open Recipe Database with API - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33) +--- Forum: Meta-Data provider and Artwork Packs (https://forum.kodi.tv/forumdisplay.php?fid=71) +--- Thread: TheMealDB.com - An Open Recipe Database with API (/showthread.php?tid=282387) |
RE: TheMealDB.com - An Open Recipe Database with API - doctorx0079 - 2018-02-14 A good source for tested recipes is The Food Lab. Unraveling the mysteries of home cooking through science! But I'm not sure how the ins and outs of copyright apply to using their recipes. RE: TheMealDB.com - An Open Recipe Database with API - ahmedhussain - 2018-02-16 (2018-02-04, 19:26)docwra Wrote:Thank you ... Works like a charm... Image sizes can be a bit big though.. Awesome work Sir!(2018-02-04, 16:49)ahmedhussain Wrote: Infact it would be great if the category api also returns the image urls.. That would be awesome!Ok good ideas, get good results RE: TheMealDB.com - An Open Recipe Database with API - ahmedhussain - 2018-02-18 Hi @docwra, I looked at the following service api, http://www.themealdb.com/api/json/v1/1/search.php?s=Arrabiata And found that this has multiple recipe Ingredient fields in JSON. I think this can be changed; Return ingredients in a JSON Array. This strategy will reduce the amount of fields coming back in JSON. Each array element can have an ingredient along with its quantity as an object. So instead of strIngredient1: "penne rigate", and strMeasure1: "1 pound" I'll have something coming back like this, Ingredients[ Ingredient { strIngredient: "penne rigate" strMeasure: "1 pound" strThumb: "http://www.themealdb.com/api/..../ingredientImageThumb.png" } ] Is there a possibility to change the API? Thanks. RE: TheMealDB.com - An Open Recipe Database with API - ahmedhussain - 2018-02-18 Hi, I looked at the following service api, http://www.themealdb.com/api/json/v1/1/s...=Arrabiata And found that this has multiple recipe Ingredient fields in JSON. I think this can be changed; Return ingredients in a JSON Array. This strategy will reduce the amount of fields coming back in JSON. Each array element can have an ingredient along with its quantity as an object. So instead of strIngredient1: "penne rigate", and strMeasure1: "1 pound" I'll have something coming back like this, Ingredients[ Ingredient { strIngredient: "penne rigate" strMeasure: "1 pound" strThumb: "http://www.themealdb.com/api/..../ingredientImageThumb.png" } ] Is there a possibility to change this API? RE: TheMealDB.com - An Open Recipe Database with API - docwra - 2018-02-19 Yep that is something I have considered but this feature may come to v2 of the API. For now I cannot break the API for other users, but it will be upgraded in the future with v2. RE: TheMealDB.com - An Open Recipe Database with API - ahmedhussain - 2018-02-19 Thanks. One last thing I noticed was that all the objects for any JSON are wrapped around meals array. For e.g, http://www.themealdb.com/api/json/v1/1/search.php?s=Arrabiata The response for Recipe Details is wrapped in an array, which can be avoided because, for one recipe, you can only have one recipe detail/instructions. But if you were thinking differently, please set me straight. RE: TheMealDB.com - An Open Recipe Database with API - ahmedhussain - 2018-02-22 YoutubeUrl is missing in the search API, https://www.themealdb.com/api/json/v1/1/search.php?s=Arrabiata Can we please have the YoutubeUrl added? Thanks. RE: TheMealDB.com - An Open Recipe Database with API - docwra - 2018-02-22 That meal was just missing a video, not all meals have a video. I have added it for now. RE: TheMealDB.com - An Open Recipe Database with API - ahmedhussain - 2018-02-24 Hi, Trying to load Images through Picasso in my code for Android application. One thing I noticed was that all the images are missing "https://" prefix. I am adding "https://" prefix manually to each image. can we please add the right prefixes to the json? @OtherDevs: Remember to add a prefix "https://" instead of "http://". 3rd party libs may not be able to handle the 301 redirects. Thank you. RE: TheMealDB.com - An Open Recipe Database with API - docwra - 2018-02-24 Yes this was a recent change, that I meant to fix last week. I will fix on Monday. RE: TheMealDB.com - An Open Recipe Database with API - ahmedhussain - 2018-02-26 Filter recipe by name/id contains a strYoutube in JSON for videos link. Some of urls are non youtube Urls which can mislead allot of developers to think that its only youtube videos urls here. For the future reference if this can be changed to something different that would be great. https://www.themealdb.com/api/json/v1/1/lookup.php?i=52772 For e.g: Here is the URL for Recipe, "Bread and Butter Pudding", https://cooking.nytimes.com/recipes/1018529-coq-au-vin This is from NY Times. Would need an account to get a video. Another thing is Youtube Mobile APIs only needs the video Id. For example,
RE: TheMealDB.com - An Open Recipe Database with API - docwra - 2018-03-03 Links should be all fixed now, I have added some new recipes as well. RE: TheMealDB.com - An Open Recipe Database with API - ahmedhussain - 2018-03-21 (2018-03-03, 14:51)docwra Wrote: Links should be all fixed now, I have added some new recipes as well.Please see the following Recipe, https://www.themealdb.com/api/json/v1/1/search.php?s=Bread%20and%20Butter%20Pudding This still contains NYtimes Url, i.e. https://cooking.nytimes.com/recipes/1018529-coq-au-vin RE: TheMealDB.com - An Open Recipe Database with API - docwra - 2018-03-21 Thanks, fixed. Hopefully there are not any more. I will add some URL checking to the strYoutube field to prevent that kind of mistake. RE: TheMealDB.com - An Open Recipe Database with API - docwra - 2018-03-21 I also completed the recipes that were missing videos. All recipes should now have a youtube vid. Thanks for the feedback. |