Jump to content
rusinov

Apple Music search with Alfred

Recommended Posts

Hey @gingerbeardman. The workflow is really great!

 

However, I have one problem: 

 

When I am searching for song/artists/albums the results in Alfred work great. If, however, I hit the first option "Search Apple Music for songs matching <some name>", Apple Music opens and displays a spinning wheel loading animation in the middle of the screen which never ends.

 

Thanks,

McLawrence

Share this post


Link to post

Interesting! I don't have time to fix - paid work takes precedence at the moment - but it should be simple enough to track down the correct URL for that type of search.

Edited by gingerbeardman

Share this post


Link to post

I was not able to find that URL easily, though I have no expertise in that. If I fix it in the future, I will post the updated URL here. 

 

Removing the "app=music" shows iTunes Store results in Apple Music.

"itms://itunes.apple.com/WebObjects/MZStore.woa/wa/search?app=music&term=%s"

Maybe the Apple Music API can help?

 

 

Share this post


Link to post
On 8/30/2019 at 8:15 AM, gingerbeardman said:

 

Sure thing! I've added Artist search to both iTunes Music Store and Apple Music workflows.

 

Downloads: https://www.gingerbeardman.com/alfred/

 

If you find this useful, please leave a donation via the button on my site.

 

Support open-source software ❤️

 

cheers,

matt

 

I'm kinda new to Alfred. How do I use this Apple Music workflow?

Share this post


Link to post
  1. have Alfred with Powerpack
  2. install Workflow
  3. look at commands listed in Workflow (artist, album, song, etc)
  4. summon Alfred
  5. type command from earlier (artist, album, song, etc)

 

Note, this is an old workflow so requires one of the following folders to be present to work.

  • ~/Library/Caches/com.runningwithcrayons.Alfred-3/Workflow Data
  • ~/Library/Application Support/Alfred 3/Workflow Data
     
Edited by gingerbeardman

Share this post


Link to post

This is a great idea. For what it's worth, I'd definitely donate if you ever upgrade this to work with Catalina (totally get your aversion to it, but it came installed on my new machine so I went with it).

 

Share this post


Link to post

seems only artist is working in the latest edition of that workflow? song and album return errors.

Share this post


Link to post

Stumbled over this post and ran into the same issues that other users have mentioned when running macOS Catalina 10.15.

 

After running the debug I saw a duplicate error showing a missing directory, so as an experiment, I ran the following in Terminal:

 

mkdir ~/Library/Caches/com.runningwithcrayons.Alfred-3/ && mkdir ~/Library/Caches/com.runningwithcrayons.Alfred-3/Workflow\ Data/

This created the directory where the python script returns album thumbnails from the Album & Song search commands.

 

Additionally since Catalina replaces iTunes.app with Music.app, I went through the three python scripts and archived some of the URL scheme that Music doesn't seem to need. I bumped up the workflow version to 2.1 for tracking purposes.

 

Search Apple Music.alfredworkflow [Google Drive]

 

Thanks to all the creators who have put this together!

 

Pro-Tip: Update Line 19/20 in the artist, album, and song python scripts to your country code to improve search results with images.

Share this post


Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...