Jump to content
Poweramp
Pauser

Importing playlists from system library

Recommended Posts

I have several playlists created with my phone's standard music app. When I invoke the "import playlists' function in Poweramp, I do not see the playlists imported. I do see a msg flash rapidly but it's too quick to read. Does anyone have any ideas on this?

Share this post


Link to post
Share on other sites

Have all of the music tracks in those playlists been scanned into Poweramp's regular library? Songs must already be present in the main library view for Playlists to be able to include them. 

Andre

Share this post


Link to post
Share on other sites

Then they ought to import correctly. They should appear an internal Poweramp playlists after the import. Can you export them to M3U playlist files via another systemapp and then PA can read them in that format? Something like New Playlist Manager in the Play store I think can handle both system and Poweramp lists.

Andre

Share this post


Link to post
Share on other sites

I've already tried that using Playlist Backup app. The import flat out does not work. I can see playlists with my standard music player and Google play music app. Why can I not import these into Poweramp?

Share this post


Link to post
Share on other sites

As a last ditch effort, here's what I did:

1. Took a file-based playlist that I was using in Poweramp of 174 files of the best jazz music you ever heard and imported it into the system playlists library using an app called Playlist Backup.

2. Opened my standard music player and verified the playlist. Music player plays the playlist just fine.

3. Opened Poweramp and imported system library playlists. Nothing, no playlist is imported. When I imported, I expected a slight pause because the list contained 174 files but it immediately comes back. No message, no nothing.

Share this post


Link to post
Share on other sites

Yes. Please see my last post. I thought I found a way to get my file-based m3u playlists into internal playlists in Poweramp but, darn, the last step didn't work (see my last post). Poweramp let me down. It almost seems as if the 'import from system library' is a stub or dead code in the software.

Share this post


Link to post
Share on other sites

You do not import m3u plsylists. They should play without anything done to them. Dont get confused that other music players play the playlist as they may well have their own media databases. Did you create your file based playlist with Poweramp?, ie export to m3u8. To make sure your playlists are actually in the android database ( and not some other as Poweramp will not see this) use my app (free or paid) to verify the android playlists. 

Share this post


Link to post
Share on other sites

Yes I created the m3u8 playlist files with Poweramp. I renamed the file to allow playlist backup/restore app to import them into the android media library. The fact that I can see and play the playlist from 2 different players ( standard lg player and google play music) tells me they are in the android media library,

Share this post


Link to post
Share on other sites

Here is a followup to my problem. I performed the exact steps on my unrooted phone running android 7 and the import works just fine. It does not work on my rooted phone running android 4.4.2.

Does the root have anything to do with this?

Share this post


Link to post
Share on other sites

Follow up to my last posts...the problem is not root. I unrooted my phone and the import still does not work. Don't know if this is an android 4.4 problem or a limitation on this phone. The phone is an lg ultimate 2 (lgl41c) that I have been using Poweramp on for years. It only has 1gig of ram but I don't feel that should be a limitation.

Share this post


Link to post
Share on other sites

Yes it's rooted. Downloaded the app and found lots of java exceptions in the playlist import task. Below is the 1st one which probanly triggered the others:

02-28 23:52:28.409 E/PlaylistsImportTask(22341): java.lang.IllegalArgumentException: the bind value at index 1 is null

Share this post


Link to post
Share on other sites

This looks as if an attempt was made to pass a null string as an argument to a method call. My guess is that the folder path string to the external.db in android.providers.media for playlists is missing somewhere in my Poweramp data. If anyone knows where this is suposed to be, please let me know. Otherwise I will delete poweamp and reinstall to see if that clears it up.

Share this post


Link to post
Share on other sites

Please post some of the relevant stacktrace

ps. is this a custom rom? 

and lastly, I suggest you clear Poweramp data and reboot your device so the pa database can be rebuilt. make sure to backup playlists etc.

Share this post


Link to post
Share on other sites

This is not a custom rom but it is a recovery of the standard rom for this phone.

Here's the full trace of the playlist import task:

03-01 07:00:10.059 E/PlaylistsImportTask(29192): 
03-01 07:00:10.059 E/PlaylistsImportTask(29192): java.lang.IllegalArgumentException: the bind value at index 1 is null
03-01 07:00:10.059 E/PlaylistsImportTask(29192):     at android.database.sqlite.SQLiteProgram.bindString(SQLiteProgram.java:164)
03-01 07:00:10.059 E/PlaylistsImportTask(29192):     at pv.ll1l(":109)
03-01 07:00:10.059 E/PlaylistsImportTask(29192):     at pv.ll1l(":49)
03-01 07:00:10.059 E/PlaylistsImportTask(29192):     at pv.doInBackground(":26)
03-01 07:00:10.059 E/PlaylistsImportTask(29192):     at android.os.AsyncTask$2.call(AsyncTask.java:288)
03-01 07:00:10.059 E/PlaylistsImportTask(29192):     at java.util.concurrent.FutureTask.run(FutureTask.java:237)
03-01 07:00:10.059 E/PlaylistsImportTask(29192):     at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:231)
03-01 07:00:10.059 E/PlaylistsImportTask(29192):     at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
03-01 07:00:10.059 E/PlaylistsImportTask(29192):     at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
03-01 07:00:10.059 E/PlaylistsImportTask(29192):     at java.lang.Thread.run(Thread.java:841)

Share this post


Link to post
Share on other sites

Looks like it is down to some error on your tracks. I assume Poweramp reads each track on the android playlist and finds its equivalent in the database. I suspect it takes the trackname to identify a track so i would check if there are any strange tracknames (eg with apostrophy for example). You could clear data on both Poweramp and android and reboot. This would rebuild both databases. The android database holds the full filepath for a track so i suspect this is where Poweramp starts. Powerwmp handles it differently in its database, it holds the track only but knows in which folder to find it.

Share this post


Link to post
Share on other sites

I think you have it reveresed. Poweramp's databade holds the full filename and folder path for tracks in the playlist. Android's database identifies the track with an audio id. Thete is nothing unusual in the track names as I have them on another phone with no importer problems.

Phone is charging right now afterwhich I will try your suggestions.

Share this post


Link to post
Share on other sites

No, i am not mistaken. I regularly excute sql queries on my pc  in both datbases to test things out for my app so am very familiar of their structures and content.

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

×