Jump to content
Poweramp
iosifak

Genre Intents. How do they work?

Recommended Posts

		content://com.maxmpz.audioplayer.data/genres
		content://com.maxmpz.audioplayer.data/genres/#/files
		content://com.maxmpz.audioplayer.data/genres/#/files/meta
		content://com.maxmpz.audioplayer.data/genres/#/files/#
		content://com.maxmpz.audioplayer.data/genres/files

Tried all of these with:

# -> Genre Name

# -> Genre Index -- Order on  Genres list

# -> Random Numbers

Nothing worked. Where can I find my genre IDs?

Share this post


Link to post
Share on other sites

What do you mean?

Using intent from tasker:

This works:  content://com.maxmpz.audioplayer.data/playlists/1/files  |  cmd: 20

This doesn't work: content://com.maxmpz.audioplayer.data/genres/1/files | cmd: 20

Share this post


Link to post
Share on other sites

Using an app called Manifestviewer shows all the intents Poweramp exposes.

I see no intent as shown in your tasker config.

The nearest  service and intent that might do something is. I do not know enough about tasker though to fill in the blanks

<service
            android:label="Player Service"
            android:name="com.maxmpz.audioplayer.player.PlayerService">
            <intent-filter>
                <action
                    android:name="com.maxmpz.audioplayer.API_COMMAND"/>
            </intent-filter>
            <intent-filter>
                <action
                    android:name="com.maxmpz.audioplayer.API_COMMAND"/>
                <data
                    android:scheme="file"/>
            </intent-filter>
            <intent-filter>
                <action
                    android:name="com.maxmpz.audioplayer.API_COMMAND"/>
                <data
                    android:mimeType="vnd.android.cursor.item/vnd.maxmpz.row"
                    android:scheme="content"/>
            </intent-filter>
        </service>

 

Share this post


Link to post
Share on other sites

I am using that intent you mentioned: com.maxmpz.audioplayer.API_COMMAND

with cmd:20 extra

and content://com.maxmpz.audioplayer.data/genres/1/files data url

And it doesn't work while it does work with content://com.maxmpz.audioplayer.data/playlists/1/files

 

This is the documentation: 

https://github.com/maxmpz/powerampapi/blob/master/poweramp_api_lib/src/com/maxmpz/Poweramp/player/PowerampAPI.java

Share this post


Link to post
Share on other sites

The value 20

public static final int OPEN_TO_PLAY = 20;

but i guess there needs to be a selection of genres first

the text reads:

# means some numeric id (track id for queries ending with /files, otherwise - appropriate category id).

The only reference to genres is in cats(category)

public static final class Cats {
  public static final int ROOT = 0;
  public static final int FOLDERS = 10;
  public static final int GENRES_ID_ALBUMS = 210;
  public static final int ALBUMS = 200;
 

public static final int GENRES = 320;

So perhaps value 320 needs to be used and some data ="Rock"

?.

Share this post


Link to post
Share on other sites

I guess it needs the internal id used in android music database to identify each of my genres.

I don't know how to find those values

 

Share this post


Link to post
Share on other sites

using razorsql on the pc and examining the Poweramp database

the table: genre_entries

image.png.a7580ec5dc3b61403a096fade5453e0d.png

and table genre

image.png.ab6bc1eff80fbea0c80287151e49d40e.png

try a number from 1000 upward

Share this post


Link to post
Share on other sites

https://s.amsu.ng/R5Mqdp6TbO0N

My tasker is too complicated for a screenshot. Here is how I start playing rock music. There are countless other tasks and profiled that I use in order to make a remote control using an old bt mini keyboard for my car. Automatically starting music playlists and navigation and changing between genres using the keyboard. Itcs sweet 

Share this post


Link to post
Share on other sites

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