8000 Getting embedded lyrics errors · Issue #271 · swingmx/swingmusic · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Getting embedded lyrics errors #271

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

Open
Prince527GitHub opened this issue Mar 15, 2025 · 1 comment
Open

Getting embedded lyrics errors #271

Prince527GitHub opened this issue Mar 15, 2025 · 1 comment

Comments

@Prince527GitHub
Copy link

So I updated to v2.0.2 and went to listen to a song and noticed the lyrics were not the local ones, normally thats fine but I know these songs have lyrics embed into them. So I checked the request and get back "Internal Server Error" which lead me to check the logs where I find:

92240114 ERROR: Exception on /lyrics [POST]

Traceback (most recent call last):

  File "/usr/local/lib/python3.11/site-packages/flask/app.py", line 1511, in wsgi_app
    response = self.full_dispatch_request()
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/usr/local/lib/python3.11/site-packages/flask/app.py", line 919, in full_dispatch_request
    rv = self.handle_user_exception(e)
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/usr/local/lib/python3.11/site-packages/flask_cors/extension.py", line 176, in wrapped_function
    return cors_after_request(app.make_response(f(*args, **kwargs)))
                                                ^^^^^^^^^^^^^^^^^^

  File "/usr/local/lib/python3.11/site-packages/flask/app.py", line 917, in full_dispatch_request
    rv = self.dispatch_request()
         ^^^^^^^^^^^^^^^^^^^^^^^

  File "/usr/local/lib/python3.11/site-packages/flask/app.py", line 902, in dispatch_request
    return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)  # type: ignore[no-any-return]
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/usr/local/lib/python3.11/site-packages/flask_openapi3/scaffold.py", line 117, in view_func
    response = func(**func_kwargs)
               ^^^^^^^^^^^^^^^^^^^

  File "/app/swingmusic/app/api/lyrics.py", line 36, in send_lyrics
    lyrics, is_synced, copyright = get_lyrics_from_tags(trackhash) # type: ignore
                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/app/swingmusic/app/lib/lyrics.py", line 190, in get_lyrics_from_tags
    lyrics = lyrics.replace("engdesc", "")
             ^^^^^^^^^^^^^^

AttributeError: 'list' object has no attribute 'replace'
@Prince527GitHub
Copy link
Author
Prince527GitHub commented Mar 15, 2025

I'm more confused now... I did nothing and now it works again.

Welp, I will leave this issue open for now because I don't believe it should error under any circumstances.

So after more testing, it seems to only effect the first time I play a song.

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
0