Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

While Execute got an error #3

Open
WorldOfDex opened this issue Apr 3, 2024 · 1 comment
Open

While Execute got an error #3

WorldOfDex opened this issue Apr 3, 2024 · 1 comment

Comments

@WorldOfDex
Copy link

Traceback (most recent call last):
File "D:\Tool\F-Lyrics\flyrics.py", line 54, in
module.Lyrics(url, api=False)
File "D:\Tool\F-Lyrics\modules\spotify.py", line 75, in init
self.jsonResponse = [self.getTrackLyrics(id_, api)]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\Tool\F-Lyrics\modules\spotify.py", line 121, in getTrackLyrics
lines = response.json()['lyrics']['lines']
^^^^^^^^^^^^^^^
File "C:\Users\DEX\AppData\Local\Programs\Python\Python312\Lib\site-packages\requests\models.py", line 900, in json
return complexjson.loads(self.text, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\DEX\AppData\Local\Programs\Python\Python312\Lib\json_init_.py", line 346, in loads
return _default_decoder.decode(s)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\DEX\AppData\Local\Programs\Python\Python312\Lib\json\decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\DEX\AppData\Local\Programs\Python\Python312\Lib\json\decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0) why?

@bunnykek
Copy link
Owner

bunnykek commented Apr 3, 2024

Updated. Try now. Make sure to add spotify auth bearer token in the config file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants