• Announcements

    • andrewilley

      Poweramp v3 Project Update   03/22/2017

      As you may be aware, the Poweramp developer has been working hard on an updated material design user interface for Poweramp v3 which required a full ground-up rebuild of the code. It's not quite ready for open testing yet, and although he would like to be able to get it out by the end of the March it may just drop over into April. See forum thread for more details and to discuss.    
Moonrakerone

Using Intents/Tasker to play a specific artist

4 posts in this topic

Hello! I have sort of an ambitious project, and I'm a bit stumped.


 


I have a tasker variable, %ARTIST, set that just constantly updates the currently playing artist. I would like to be able to have a task which simply plays all of that artist's music on my phone.


 


I've hit a wall at sending the command to tasker. Using the following: 


 


Action : android.media.action.MEDIA_PLAY_FROM_SEARCH


Extra : query: %ARTIST


Package : com.maxmpz.audioplayer


Target : Activity


 


With tasker's Send Intent task, Poweramp will play the first song of the artist in alphabetical order, then play the rest of my library in alphabetical order. 


 


How can I tell Poweramp to play a specific(Varying) artist from tasker?


 


(Posted here instead of general talk)


Share this post


Link to post
Share on other sites

I am trying the same, but from my understanding the call should be:

 

Action: com.maxmpz.audioplayer.API_COMMAND
Data: content://com.maxmpz.audioplayer/artists&flt=%ARTIST
Extra: cmd:20
Target: Service 

 

Unfortunately, this does also not work for me.

I tested it with e.g.

 

Data: content://com.maxmpz.audioplayer/artists&flt=foo

 

Which started playing some songs (still not related at all to foo in the artists name)...

 

At this point I am stuck... any hints?

Share this post


Link to post
Share on other sites

I know this is kinda old, but I just wanted to tell you what I've found out.

First: you can query playing artist foo with content://com.maxmpz.audioplayer.data/files?flt=foo

It's even working for not exact input (e.g. "mind in a box" matches "mind.in.a.box")

Second: this may fail if there are songs containing the artist name in title, because all results are played.

So: it would also work for title or album queries

Third: by looking into Playerservice.xml I found out, that content://com.maxmpz.audioplayer.data/artists/#/files

would also work, but # seems to be an unique artist id, which I don't know how to find out.

Greetings from Germany,

F43nd1r

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now