ldsz / plugin.audio.spotify

Unofficial spotify plugin for Kodi 19
GNU General Public License v3.0
47 stars 17 forks source link

I have it up and running on the nighly from 20230210. #36

Closed BlablaBloblo closed 1 year ago

BlablaBloblo commented 1 year ago
          I have it up and running on the nighly from 20230210.

Had to go through some log errors and patch the referenced lines in the .py files.

From top of my head:

In outh2.py:

    response = requests.post(self.OAUTH_TOKEN_URL, data=payload,
        headers=headers, verify=True, proxies=self.proxies)
    if response.status_code != 200:

(last line was if response.status.code is not 200 before)

In /storage/.kodi/addons/plugin.audio.spotify/resources/lib/cherrypy/_cpdispatch.py :

else: getargspec = inspect.getfullargspec(callable)[:4]

Python 3 requires using getfullargspec if

# keyword-only arguments are present
if hasattr(inspect, 'getfullargspec'):
    def getargspec(callable):
        return inspect.getfullargspec(callable)[:4]

(First line was: getargspec = getargspec(callable): before) (Not qiet clean hack - i know!)

Originally posted by @chrisgo67 in https://github.com/ldsz/plugin.audio.spotify/issues/35#issuecomment-1426822294

BlablaBloblo commented 1 year ago

Mistake..