Play spotify song with cmd in a particular minute. (Code and Help to Fix)
-
@Santiago, I researched and found the same thing - they apparently stopped supporting that #0:52 parameter to jump to a specific part of the song. That's a bummer.
In my testing I found another way to play a specific song. You can just run start spotify:track:1aICPClDGoZGvxAv8g5lmS but if Spotify is already open, it doesn't work, so I made this .bat file that closes Spotify then re-opens it by playing a specific song.
taskkill /im spotify.exe start spotify:track:1aICPClDGoZGvxAv8g5lmS
-
This post is deleted! -
@Russ Thanks for your reply!! Yes, its really a bummer. I dont know why they change that. Im going to test your .bat, thanks you again.
-
@russ Excuse me, is it possible to make it play a playlist automatically?
Edit your bat like this:
"taskkill /im spotify.exe
start spotify:playlist:39aWYh4Pq3xjPwOUChkO4a?si=f262d16984cd44b8"
(replace music by playlist) -
I can't automate music playback either. Have you found the problem yet?
-
@UchechiThomas, I found this post where people have solved it:
I found that this command switches to the playlist by ID:
start spotify:user:anything:playlist:22nGVo4QFZcfTAXcsl67kD
The trick is to get it to start playing. This batch file worked for me:
taskkill /im spotify.exe start spotify:user:anything:playlist:22nGVo4QFZcfTAXcsl67kD ping localhost nircmd sendkeypress spc
The ping localhost command just makes it wait long enough to start Spotify. The nircmd command presses the space bar to start playing the playlist.
-
Thanks for the advice. I'll try to check it out today with the spotify promotion.
-
@Russ Thank you Russ. I am currently looking to create a hotkey to open a specific track in Spotify and this is exactly what I needed.
-
I am currently trying to play a podcast episode in this manner. I am able to pull up the episode in question with this code, however, it does not play automatically which I would definitely like it to do:
start spotify:episode:0yAefXW3oX7WbliU0DU8QB
-
@John-Paul, please try this in a .bat script:
taskkill /im spotify.exe start spotify:episode:0yAefXW3oX7WbliU0DU8QB ping localhost nircmd sendkeypress spc