fm16191 / spotify-recorder

Recorder for Spotify. Not a YouTube downloader !!!
30 stars 6 forks source link

Recording starts but does nothing until forced to stop #12

Open linesquarecube opened 1 month ago

linesquarecube commented 1 month ago

Hi,

spotify-recoder starts without an error, starts the spotify client and plays the song of the provided share link.

python3 api.py https://open.spotify.com/track/share_id
Name des Servers: PulseAudio (on PipeWire 1.0.6)
Sound Server : PipeWire

Spotify keeps playing after the song finished and spotify-recorder does nothing. When forcing a stop with ctrl+c, I get the following error message

[2024 May.25 13:22:03] "./Title-Artist.mp3" : Filepath does not exist. Exiting

Title and Artist are correctly extracted

Thanks for you help

fm16191 commented 1 month ago

Hi, thanks for your report and sorry for the late reply.

Indeed, when you force-stop it with ctrl+c, the script can't finish and move the temp file (located in the "songs_build" folder) to its final path, so it's not available for metadata editing.

However you are not facing expected behavior, so let's figure out what the problem is

After spotify starts playing, do you see the message "==> Recording as "./Title-Artist.mp3" for X seconds" ? This should appear right after the script detects that Spotify has started playing content.