mirror of
https://github.com/kokarare1212/librespot-python.git
synced 2026-04-25 00:25:49 +03:00
[GH-ISSUE #200] [BUG] Simple Play example doesn't quit after playing finishes #35
Labels
No labels
bug
dependencies
duplicate
enhancement
invalid
pull-request
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/librespot-python-kokarare1212#35
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @digfish on GitHub (Jun 3, 2023).
Original GitHub issue: https://github.com/kokarare1212/librespot-python/issues/200
Describe the bug
Hi, I tried your library using a simple example
To Reproduce
Steps to reproduce the behavior:
On VS Code 1.78.2 i run The following snippet:
Expected behavior
FFplay pops out and starts playing the track until the end after that exits cleanly but the program is stuck. I'm only able to stop pressing the trash button to kill terminal pane on vscode or killing it manually in the task manager. Doesn't respond to Ctrl+C
Screenshots
Last lines of output:
Client Information (please complete the following information):
Additional context
Add any other context about the problem here.
@kokarare1212 commented on GitHub (Jun 3, 2023):
I can't confirm such a phenomenon with Python 3.10.10 on Windows, though, I think it will end correctly if
session.close()is executed at the end.@digfish commented on GitHub (Jun 3, 2023):
Hi,
thanks for you reply, I tried to add:
but now the remote server drops the connection suddenly, like the error reports:
and even after this in the end the program continues in getting stuck... !
2023-06-03 23:46 GMT+01:00, 碧舞すみほ @.***>:
@benearnthof commented on GitHub (Jun 30, 2023):
Hi, I am currently facing the same problem on a windows machine when trying to stream audio from a list of URIs. Even after adding session.close() it leads to the error message. This does not impair my usage at this time since I'm only using the audiostream to extract a transcription but adds a lot of clutter to the console output & a bit of confusion on my part.
@cvdub commented on GitHub (Mar 31, 2025):
I believe I fixed this with #300