hrkfdn / ncspot

Cross-platform ncurses Spotify client written in Rust, inspired by ncmpc and the likes.
BSD 2-Clause "Simplified" License
5.01k stars 208 forks source link

Unexpected Exit and Terminal Display Issues in ncspot with Spotify Free Account #1535

Open kelvinauta opened 1 week ago

kelvinauta commented 1 week ago

Describe the bug When using ncspot with a Spotify Free account, the application unexpectedly exits without any message for the user, leading to confusion. The terminal also displays strange characters upon certain actions like clicking or pressing keys.

To Reproduce Steps to reproduce the behavior:

  1. Open a terminal session using the kitty terminal.
  2. Use the Zsh shell.
  3. Launch ncspot with a Spotify Free account.
  4. Perform actions like clicking or pressing any key.
  5. Observe the terminal output and application crash.

Expected behavior The application should display an error message indicating that "ncspot does not work with Spotify Free, a Premium account is required" instead of crashing.

Screenshots N/A

System (please complete the following information):

Backtrace/Debug log

[2024-10-19][20:34:03] [librespot_core::session] [ERROR] librespot does not support "free" accounts.
[2024-10-19][20:34:03] [librespot_core::session] [INFO] Please support Spotify and your artists and sign up for a premium account.

Additional context The issue occurs consistently when using a Spotify Free account with ncspot in the kitty terminal using the Zsh shell.

mrsteve0924 commented 1 day ago

i have the same issue and i have a premium account. run ncspot in terminal, terminal window blanks out for a sec and then exits. i am able to login to spotify website player and and everything was okay there.

OS: arch ncspot version: 1.1.2 kernel: 6.11.5

debug log here, but nothing jumps out to me. thanks https://dpaste.com//AGLDALN5H

kelvinauta commented 1 day ago

i have the same issue and i have a premium account. run ncspot in terminal, terminal window blanks out for a sec and then exits. i am able to login to spotify website player and and everything was okay there.

OS: arch ncspot version: 1.1.2 kernel: 6.11.5

debug log here, but nothing jumps out to me. thanks https://dpaste.com//AGLDALN5H

Try to install it with Cargo instead of yay or pacman, use version
1.2 https://crates.io/crates/ncspot