kodi-community-addons / plugin.audio.spotify

Unofficial spotify plugin for Kodi
GNU General Public License v3.0
293 stars 102 forks source link

Fixes AddOn Crash due AP Port reachability in ap_list #119

Closed jakermx closed 4 years ago

jakermx commented 5 years ago

I found the spotty plugin version 0.20.0, instead of 0.12.0 that the currently addon is using, the new version support --ap-port paramter that enabled you to try the ap in ap_list returned by http://apresolve.spotify.com by the port list you want, since I dont have the spotty source code I just added the funcionallity that tries first 443 then 80 and finally 4070.

All of this because currently, at least for me here in Mexico, the AddOn was not working , so I tried a hack using a local web server that modifies the apresolve JSON response, deleting servers that are not reachable. But I found the spotty version 0.20.0 on https://github.com/michaelherger/Spotty-Plugin so I just adjusted your code to use it.

Hope it helps.