Jump to content
rusinov

Apple Music search with Alfred

Recommended Posts

I use Alfred for searching in iTunes Store but I can't find a custom search for Apple Music catalog, any tips?

Edited by rusinov

Share this post


Link to post

Here's what I have so far:

 

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

 
it prefers songs and music videos in results
(a version searching only for albums would be easy enough to create)
 
however, right now it opens the result in you browser as i can't figure out the URL scheme to open iTunes to that song or collection.
 
If anybody figures it out, feel free to let me know and I'll host this on github.
Edited by gingerbeardman
new download link

Share this post


Link to post

 

Yeah, I found that and others but I can't get any links to open their respective pages in iTunes.

 

If you can find an iTunes link starting with http:// that you can change to start with itms:// that when entered in Safari opens iTunes to a specific page, let me know!

 

eg.

 

David Bowie "Blackstar"

http://itunes.apple.com/gb/album/blackstar/id1059043043

Becomes

itms://itunes.apple.com/gb/album/blackstar/id1059043043

Which opens iTunes, but not to the correct tab.

Edited by gingerbeardman

Share this post


Link to post

Thank you Gingerbeardman.

 

A few things:

- The Search iTunes Music Store take me to the UK store. Is it possible to switch to US store?

- More importantly for me, I would like to be able to search Apple Music, not the iTunes Music Store. Do you have plans to develop such a workflow?

 

Thanks

Matthew

Share this post


Link to post
On 21/02/2018 at 7:58 PM, mlondon said:

Thank you Gingerbeardman.

 

A few things:

- The Search iTunes Music Store take me to the UK store. Is it possible to switch to US store?

- More importantly for me, I would like to be able to search Apple Music, not the iTunes Music Store. Do you have plans to develop such a workflow?

 

Thanks

Matthew

Sure, the ability to edit the store region is already in the script.

 

1. Open Alfred

2. Find workflow

3. Right click workflow

4. "Open in Finder"

5. open files song.py and album.py

6. change line COUNTRY = u'GB' to COUNTRY = u'US'
 

Edited by gingerbeardman

Share this post


Link to post
1 minute ago, gingerbeardman said:

Sure, the ability to edit the store region is already in the script.

 

1. Open Alfred

2. Find workflow

3. Right click workflow

4. "Open in Finder"

5. open files song.py and album.py

6. change line COUNTRY = u'GB' to COUNTRY = u'US'
 

 

And regarding searching Apple Music instead of iTunes Store? :)

Share this post


Link to post
4 hours ago, gandalfsaxe said:

 

And regarding searching Apple Music instead of iTunes Store? :)

 

Sorry I have not had time to look into that.

 

 

Edited by gingerbeardman

Share this post


Link to post
On 16/04/2018 at 8:00 PM, gandalfsaxe said:

 

And regarding searching Apple Music instead of iTunes Store? :)

 

OK @gandalfsaxe a bit more digging and it was possible to do this with minor changes—I just had to find the correct documentation.

 

Let me know if you need to search for anything other than song and album.

 

See above for updated download link!

 

Edited by gingerbeardman

Share this post


Link to post
On 4/17/2018 at 2:58 AM, gingerbeardman said:

Sure, the ability to edit the store region is already in the script.

 

1. Open Alfred

2. Find workflow

3. Right click workflow

4. "Open in Finder"

5. open files song.py and album.py

6. change line COUNTRY = u'GB' to COUNTRY = u'US'
 

 

Would someone be willing to help a newbie? I have no idea... none. But I desparately want a workflow that will search the australian itunes store so that when i am DJing if I dont have a song, its easy to download it from the store (not apple music).

 

Is there anyone that can help?

Share this post


Link to post
On 2/19/2019 at 6:42 AM, MandyB said:

 

Would someone be willing to help a newbie? I have no idea... none. But I desparately want a workflow that will search the australian itunes store so that when i am DJing if I dont have a song, its easy to download it from the store (not apple music).

 

Is there anyone that can help?

 

what exactly is the problem?

Share this post


Link to post
On 2/19/2019 at 5:42 AM, MandyB said:

 

Would someone be willing to help a newbie? I have no idea... none. But I desparately want a workflow that will search the australian itunes store so that when i am DJing if I dont have a song, its easy to download it from the store (not apple music).

 

Is there anyone that can help?

Which of the 6 steps do you get stuck at?

Share this post


Link to post
On 4/17/2018 at 12:02 AM, gingerbeardman said:

 

OK @gandalfsaxe a bit more digging and it was possible to do this with minor changes—I just had to find the correct documentation.

 

Let me know if you need to search for anything other than song and album.

 

See above for updated download link!

 

 

Thanks! What I actually wanted is a little simpler: Instead of a built-in search that shows up in Alfred, I just want to search from alfred, but then redirected to the application (for Mac AppStore and iTunes for Apple Music). Like you can do with spotify using "spotify:search:{query}". You know how to do this?

Share this post


Link to post
Posted (edited)
On 3/23/2019 at 9:24 PM, gandalfsaxe said:

 

Thanks! What I actually wanted is a little simpler: Instead of a built-in search that shows up in Alfred, I just want to search from alfred, but then redirected to the application (for Mac AppStore and iTunes for Apple Music). Like you can do with spotify using "spotify:search:{query}". You know how to do this?

 

You may be able to bypass Alfred completely using iTunes URL Scheme, but I cannot help you with that.

 

https://stackoverflow.com/questions/31194155/apple-music-url-scheme

 

Edited by gingerbeardman

Share this post


Link to post
On 2/22/2018 at 2:38 AM, gingerbeardman said:

OK, I fixed my workflows for Alfred 3.

 

Search Mac App Store

Search App Store

Search iTunes Music Store

 

NEW April 2018

Search Apple Music

 

Here they are: http://workupload.com/archive/hfKc87d

 

 

Hi, as I am currently in Australia, I've set the COUNTRY as u'AU' following your suggestions. However there's always an annoying delay before the exact song popping up. Is there anything I can do with it?

Share this post


Link to post
On 4/7/2019 at 10:19 AM, Lawrenxe said:

Hi, as I am currently in Australia, I've set the COUNTRY as u'AU' following your suggestions. However there's always an annoying delay before the exact song popping up. Is there anything I can do with it?

 

I think it's just a bit slow by nature. While it might feel slower than most Alfred workflows, compare it to how sluggish iTunes normally is for pulling up Apple Music results. 

Share this post


Link to post
On 2/21/2018 at 10:38 AM, gingerbeardman said:

OK, I fixed my workflows for Alfred 3.

 

Search Mac App Store

Search App Store

Search iTunes Music Store

 

NEW April 2018

Search Apple Music

 

Here they are: http://workupload.com/archive/hfKc87d

 

 

Is it possible to Search the iTunes Music Store by Artist? It appears the only options are search by Album and Song, but would love to also search by Artist. Any help is much appreciated, thanks

Share this post


Link to post
Posted (edited)
On 8/20/2019 at 9:27 PM, Adrian00 said:

 

Is it possible to Search the iTunes Music Store by Artist? It appears the only options are search by Album and Song, but would love to also search by Artist. Any help is much appreciated, thanks

 

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

Edited by gingerbeardman

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