Closed robsw closed 2 years ago
It seems that you might have edited the code, could you send screenshot of index.php at line 24.
You're using older version of PHP, please upgrade to PHP version >= 8.1
Thanks, do you have an example of the config.json correct layout?
The config.json is an auto generated cache file used to save token from spotify (they expire in an hour). You only need to set an environment variable SP_DC
. SP_DC is cookie which is used to to authenticate against Spotify in order to have access to the required services. you can use this guide to find it.
I will add deployment part to the documentation (README) soon. That will make it lot easier for peeps who want to host it themselves.
Thanks its generated a config.json with an accessToken but when i try to make a call with an ID or URL it says lyrics not available but they get found on your api.
Have you set SP_DC, otherwise the generated token will be a anonymous token (not linked to an account). You can check by opening the config.json file and checking the value of isAnonymous key. for example if token is not linked to an account the isAnonymous will be True
.
If that's the case then check your SP_DC cookie and if it is correct, then delete the config.json file. It will make the script generate new token.
Ah thanks, I made a mistake setting up the environment variable, its all working now thank you so much!!!
/lyrics/index.php PHP Parse error: syntax error, unexpected ':', expecting ')' in /lyrics/index.php on line 24