TRIGGERcmd
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Register
    • Login

    Play spotify song with cmd in a particular minute. (Code and Help to Fix)

    Scheduled Pinned Locked Moved Windows
    11 Posts 5 Posters 8.5k Views 1 Watching
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • RussR Offline
      Russ @Santiago
      last edited by

      @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
      

      Russell VanderMey

      S José ParraJ John PaulJ 3 Replies Last reply Reply Quote 1
      • S Offline
        Santiago
        last edited by

        This post is deleted!
        1 Reply Last reply Reply Quote 0
        • S Offline
          Santiago @Russ
          last edited by

          @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.

          1 Reply Last reply Reply Quote 0
          • José ParraJ Offline
            José Parra @Russ
            last edited by

            @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)

            1 Reply Last reply Reply Quote 0
            • U Offline
              UchechiThomas
              last edited by

              I can't automate music playback either. Have you found the problem yet?

              RussR 1 Reply Last reply Reply Quote 0
              • RussR Offline
                Russ @UchechiThomas
                last edited by Russ

                @UchechiThomas, I found this post where people have solved it:

                https://community.spotify.com/t5/Desktop-Windows/Is-there-a-command-to-play-a-playlist-using-command-line/td-p/952251

                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.

                Russell VanderMey

                1 Reply Last reply Reply Quote 1
                • U Offline
                  UchechiThomas
                  last edited by UchechiThomas

                  Thanks for the advice. I'll try to check it out today with the spotify promotion.

                  1 Reply Last reply Reply Quote 0
                  • John PaulJ Offline
                    John Paul @Russ
                    last edited by

                    @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.

                    1 Reply Last reply Reply Quote 0
                    • John PaulJ Offline
                      John Paul
                      last edited by

                      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
                      
                      RussR 1 Reply Last reply Reply Quote 0
                      • RussR Offline
                        Russ @John Paul
                        last edited by Russ

                        @John-Paul, please try this in a .bat script:

                        taskkill /im spotify.exe
                        start spotify:episode:0yAefXW3oX7WbliU0DU8QB
                        ping localhost
                        nircmd sendkeypress spc
                        

                        Russell VanderMey

                        1 Reply Last reply Reply Quote 0

                        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                        With your input, this post could be even better 💗

                        Register Login
                        • First post
                          Last post