caleb531 / play-song

An Alfred workflow for quickly and easily playing music in the Apple Music app
MIT License
109 stars 9 forks source link

Playback stops after ~25-seconds after "play playlist" on a Apple Music Playlist #49

Closed ronaldmendoza closed 6 years ago

ronaldmendoza commented 6 years ago

Playback stops ~10-45 seconds after using workflow "play playlist" on an Apple Music Playlist.

Running itunes 12.7.5.9 macos 10.13.4 2017 mbp 13" non-touchbar

Repro Steps:

  1. Add all of these Apple Music Playlists to your iTunes Library:

    > open "itmss://itunes.apple.com/us/playlist/primavera-sound-2018-barcelona/pl.9d153d7b2bc94e5983a510115cdc2410"
    > open "itmss://itunes.apple.com/us/playlist/pure-yoga/pl.6e7eb6c06bcd40ec982e24d6af0cd59a"
    > open "itmss://itunes.apple.com/us/playlist/the-a-list-dance/pl.6bf4415b83ce4f3789614ac4c3675740"
  2. Click +ADD from within iTunes for the Apple Music Playlist

  3. In iTunes observe playlist now appears in "Apple Music Playlist"

  4. In alfredapp try "play playlist"

  5. Observe "Alfred Play Song" is populated in iTunes under 'Music Playlists'

  6. Playlist starts and first song plays.

  7. Observe stops after n-seconds (time varies)

  8. "Alfred Play Song" Playlist becomes 'empty'

caleb531 commented 6 years ago

@ronaldmendoza Thank you for providing the steps and some example playlists—I am able to reproduce exactly what you are experiencing. For the time being, you can hold down the shift key when choosing the playlist from the results. This will play the playlist directly, rather than queueing up all the songs in the Alfred Play Song playlist.

If you do not desire to hold down shift every time, you can modify the workflow to do so by deleting the non-modifier link for playplaylist, and then double clicking the shift link to remove the modifier.

Steps:

step-1 step-2 step-3

Result

result

I hope that will serve as a workaround for the time being. I am leaving this issue open because it is still not the desired behavior, thereby warranting additional investigation.

caleb531 commented 6 years ago

@ronaldmendoza After some further investigation, I have identified the cause of the problem, and will be pushing out a fix soon. The patch will be part of Play Song v5, but I will attach the beta workflow to this issue as soon as I finish the patch.

In other words, hang tight—a fix is on the way!

caleb531 commented 6 years ago

@ronaldmendoza @spott I've finished the fix! Apple Music playlists will now play properly, however as a consequence of fixing the bug, they can no longer be queued (not too much of a loss, IMO—regular user playlists can still be queued).

Please try out the attached build (v5-beta.3) and let me know how it works for you.
Play Song v5-beta.3.alfredworkflow.zip

spott commented 6 years ago

@caleb531:

Thanks! Great to hear that you got this. I'll give the fix a try and see if it works for me.