[GH-ISSUE #576] Closing web client does not stop the play timer #238

Open
opened 2026-02-28 14:47:58 +03:00 by kerem · 3 comments
Owner

Originally created by @meerasndr on GitHub (Sep 13, 2020).
Original GitHub issue: https://github.com/Rigellute/spotify-tui/issues/576

I'm not sure if the web app qualifies as an official Spotify client, but here goes:
When I close the Spotify tab on my browser, the play countdown keeps running in the terminal till the end of the track length, even though the audio itself stops. Tried this on both Firefox and Brave with the same result.
Is this a known issue?
PS- I'm able to start and pause from the Terminal, no problems. It displays the client correctly( Web player(Firefox)).

Originally created by @meerasndr on GitHub (Sep 13, 2020). Original GitHub issue: https://github.com/Rigellute/spotify-tui/issues/576 I'm not sure if the web app qualifies as an official Spotify client, but here goes: When I close the Spotify tab on my browser, the play countdown keeps running in the terminal till the end of the track length, even though the audio itself stops. Tried this on both Firefox and Brave with the same result. Is this a known issue? PS- I'm able to start and pause from the Terminal, no problems. It displays the client correctly( Web player(Firefox)).
Author
Owner

@sputnick1124 commented on GitHub (Sep 29, 2020):

Yep. It looks like we don't properly handle the possibility of the playback context disappearing: github.com/Rigellute/spotify-tui@0e8f3723ad/src/network.rs (L310-L325)

This should be as simple as adding an

} else {
    app.current_playback_context = None;
}

Might be a great first issue for someone to tackle. I would be happy to help out if needed.

<!-- gh-comment-id:700365598 --> @sputnick1124 commented on GitHub (Sep 29, 2020): Yep. It looks like we don't properly handle the possibility of the playback context disappearing: https://github.com/Rigellute/spotify-tui/blob/0e8f3723ad3b91725d04b460ae6b511ac6ffac1c/src/network.rs#L310-L325 This should be as simple as adding an ```rust } else { app.current_playback_context = None; } ``` Might be a great first issue for someone to tackle. I would be happy to help out if needed.
Author
Owner

@meerasndr commented on GitHub (Sep 29, 2020):

Thanks. I can take a look at it!

<!-- gh-comment-id:700395564 --> @meerasndr commented on GitHub (Sep 29, 2020): Thanks. I can take a look at it!
Author
Owner

@Rigellute commented on GitHub (Sep 30, 2020):

Nice!

<!-- gh-comment-id:701524347 --> @Rigellute commented on GitHub (Sep 30, 2020): Nice!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/spotify-tui#238
No description provided.