Jump to content
Poweramp
wickedlemon

API, Playlists and Tasker

Recommended Posts

Posted (edited)

I'm attempting to use Poweramp my car audio player and am trying to simplify/automate as  much as possible.

I have several m3u playlists which are in my library folder. They scan and show up with Poweramp ok and work fine. I gather you need to reference playlist ids when using the API, which isn't ideal, so I've tried to ascertain these by trial and error. The problem is, sending the same id will start a different playlist on each occasion. So I have no idea what the numbers I'm sending through are actually referencing.

content://com.maxmpz.audioplayer.data/playlists/[number]

cmd:20

I'm replacing number by trial and error integers starting at 1.

Can any one shine any light on what I may be doing wrong? 

Edited by andrewilley
Moved to development API subforum

Share this post


Link to post
Share on other sites

This has been problematic for other Poweramp users. That is why i provide the playlist id in my app New Playlist Manager.

It is even there in the free version. !!

Share this post


Link to post
Share on other sites

I have tried your app, but I doesn't show my m3u playlists. The only playlists it seems to show are ones created with the app. I did try the import option under m3u playlists, which although it gave me an id, did so by doubling up the playlists in Poweramp. Should your app pick up and show ids for m3u playlists? If so how do I go about it?

Share this post


Link to post
Share on other sites

Got ya!

I assumed it would just pull the playlists from Poweramp as they were scanned into the library. I didn't think I'd need to change that path as I wasn't exporting.

Share this post


Link to post
Share on other sites

It does pull the Poweramp playlists from the Poweramp database. This is what you see on the Poweramp tab. However when exporting as m3u, they become independent files which Poweramp then picks up again, assuming it scans the folders,and enters them into its database. I would need to investigate how this is managed in the database.

Share this post


Link to post
Share on other sites

My playlists are independently created m3u files which are in the music library folder that Poweramp scans. They show up under playlists in Poweramp but not under the Playlist tab in your app.

Share this post


Link to post
Share on other sites

If they ddo not show in my app then you need to set the default m3u folder to the folder where you have your m3u playlists. From the menu, local folders, browse to the correct folder, then select Default folders, set m3u export folder. Your playlists will then show up.

 

Share this post


Link to post
Share on other sites

If you want to play the physical .m3u files using tasker, then you do not need the Poweramp Id as these files are effectively independent and you should be able to launch Poweramp with the playlist name (imho). If you want to play playlists located in Poweramp, you have the id showing in my app. I exclude .m3u and smb playlists from displaying

pamp.pampplaylistnameColumn + " NOT LIKE \'smb_%\' AND " +
        pamp.pampplaylistnameColumn + " NOT LIKE \'%.m3u%\'";

 

Share this post


Link to post
Share on other sites

I've worked out the playlist ids I need for now. Thanks for all your help. Now to do lots of testing and see what other issues arise!

Share this post


Link to post
Share on other sites

Today my playlist IDs seem to have jumbled up. I wonder if IDs change if the m3u contents have changed? If so that's an issue.

I've tried playing the m3u directly from Tasker but I get a "Music Playback: Playback failed".  I guess I'm hoping the system would know what to do with the file and open it in my default player.

Share this post


Link to post
Share on other sites

As i said previously, if you create an .m3u8 playlist and Poweramp scans it, it will recreate another Poweramp playlist (if fact a duplicate) so it will get a new unique id. I think trying to launch m3u playlists is pointless, you might as well just use the original playlist (for which I show the id). The exception is if you ensure Poweramp does NOT scan your .m3u playlists, simply as backups so these playlists would not reappear in Poweramp.

Share this post


Link to post
Share on other sites

What I'm trying to achieve is have a selection of playlists that are regularly updated from my PC and can then be launched via Bluetooth buttons without having to mess around  manually updating/scanning/importing anything on my phone.

So there's no way to reference these playlists using the API as their IDs will constantly be changing?

I can keep them outside of the Poweramp library folders if that is the only way to proceed, but I'm a bit lost as to how to launch these from Tasker.

Share this post


Link to post
Share on other sites

What I can do is to provide an option to show.m3u on the Poweramp playlist Tab. This would give you the ids. I do not think the ids are constantly changing but each time a new playlist is created, a new unique id is generated.  If you delete one, the freed up Id may not be used as the number tends to be sequentially generated

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