aussieaddons / repo

Aussie Add-ons repository for Kodi
http://aussieaddons.com/installation/
103 stars 44 forks source link

Include our own 'API' version in building Kodi urls #86

Open glennguy opened 3 years ago

glennguy commented 3 years ago

Plenty of times we make breaking changes to how the Kodi url is formed. This isn't an issue for regular use of add-ons however when users take advantage of Kodi 'favourites' then we run into problems eg. https://github.com/aussieaddons/issue-reports/issues/6627

In this example the url being used to call the plugin is ?action=listcategories&category=genre&genre=Documentary%20%26%20Special%20Interest however the correct one should be ?action=listcategories&category=genre&genre=documentary-and-special-interest Setting an additional attribute for the object for eg api=1.1.0 would allow us to know when/what version the url was created and act accordingly (mainly avoid issue reports that don't need to be). Perhaps a new method in common utils to handle dialog for this situation?