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

Lyrics not updating properly (TypeError: list indices must be integers or slices, not str) #8

Closed
xtho25 opened this issue May 21, 2024 · 2 comments

Comments

@xtho25
Copy link
Contributor

xtho25 commented May 21, 2024

Hello there, i am experiencing an issue where Overlyrics is sometimes stuck at Starting... due to this error appearing in the console as well as update_overlay_text() not updating. Here is a full log of the console while VERBOSE_MODE is True. (Note: I am using a slighly different version of Overlyrics where the authentication is using the depracated method with an app of my own. I also changed the location of the font and images. I hope that none of that is causing this issue.)

trackName in display_lyrics:
get_track_info(): Wicked Game
get_track_info() - nova musica: Wicked Game
Entered into update_overlay_text()
trackName in display_lyrics: Wicked Game
get_track_info(): Wicked Game
get_track_info(): Wicked Game
get_track_info(): Wicked Game
get_track_info(): Wicked Game
Exception in thread Thread-2 (update_display):
Traceback (most recent call last):
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.11_3.11.2544.0_x64__qbz5n2kfra8p0\Lib\threading.py", line 1045, in _bootstrap_inner
self.run()
File "C:\Program Files\WindowsApps\PythonSoftwareFoundation.Python.3.11_3.11.2544.0_x64__qbz5n2kfra8p0\Lib\threading.py", line 982, in run
self._target(*self._args, **self.kwargs)
File "c:\Users\skarp\Desktop\Code\python\Spotify\Overlyrics-main\Overlyrics.py", line 174, in update_display
display_lyrics(trackName, artistName, currentProgress, isPaused)
File "c:\Users\skarp\Desktop\Code\python\Spotify\Overlyrics-main\Overlyrics.py", line 230, in display_lyrics
lyrics = syncedlyrics.search(searchTerm)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\skarp\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\syncedlyrics_init
.py", line 59, in search
_l = provider.get_lrc(search_term)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\skarp\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.11_qbz5n2kfra8p0\LocalCache\local-packages\Python311\site-packages\syncedlyrics\providers\musixmatch.py", line 120, in get_lrc
tracks = body["track_list"]
~~~~^^^^^^^^^^^^^^
TypeError: list indices must be integers or slices, not str
get_track_info(): Wicked Game
get_track_info(): Wicked Game
get_track_info(): Wicked Game
get_track_info(): Wicked Game
get_track_info(): Wicked Game
get_track_info(): Wicked Game
get_track_info(): Wicked Game
get_track_info(): Wicked Game
get_track_info(): Wicked Game
....
....

If you need any additional info, feel free to ask, thanks!

@xtho25
Copy link
Contributor Author

xtho25 commented May 21, 2024

Hey there, i found the issue in the syncedlyrics github page: moehmeni/syncedlyrics#35

@xtho25
Copy link
Contributor Author

xtho25 commented May 23, 2024

Hello, it seems like the problem was the old authenication system i was using or ig it just fixed it self somehow since i haven't experienced this issue since yesterday where i wasn't authenicated properly.

@xtho25 xtho25 closed this as completed May 23, 2024
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

1 participant