• Announcements

    • andrewilley

      Poweramp v3 Project Update   04/24/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 and is taking some time to get to a beta-test stage. See the forum thread for more details and to discuss.    

eric.alva

Approved Members
  • Content count

    10
  • Joined

  • Last visited

About eric.alva

  • Rank
    Member
  1. Excuse my ignorance, but where is that indicated? What time in the video and where on Poweramp? I don't use Folder view very much. In the skin I'm using I believe i have to navigate into folder, go into the menu, and select List Options to see that checkbox.
  2. I too encode information in my file names, specifically length at the end in the form (03-06).mp3, indicating 3 minutes and 6 seconds. If I choose to display file name under Settings->Look and Feel->Play UI->Filename as Title, it shows correctly in the player window. However, in the Folders view it shows the Title of the track and not the file name. In the Folder view I must go into the folder, bring up the menu, and go into List Options. In there is a checkbox "Show file names in Folder". If I select that then it shows the filename as you'd like to see. Did you select that option? For example I see one of mine as, "03 - Sober (05-06).mp3" I'm guessing the title of your track is something like Rush Limbaugh - Hour 1.flv if you were to look at the tags. What is the title of the track when you long press and select Info/Tags? Am I missing an option or misunderstanding what you're looking for? If your software supports it, you might consider encoding the title with the date info in addition to the filename. Also, if that's not possible, under list options you can sort "By filename" if that helps you at all. I don't use anything in the file name except for debugging purposes. I put all information I really care about in the tags, but I also carefully name artist/album/file etc. to ensure I can identify a track/file if I think there's a defect in some software.
  3. I reported this defect via the bug tracking page mentioned in the first topic in this Bugs forum. I thought I'd also post it here in case anyone else is running into problems where songs are missing from playlists. File based playlists are not correctly imported if file path contains accented characters. The playlist is partially imported, minus the tracks with the characters. The tracks show up in other areas, such as the Songs list, and play without issue. 2 specific examples:The Tool album Ænima name starts with an A-E ligature. None of the songs on that album appear in the Poweramp playlist.A Perfect Circle has a song entitled Breña and the lowercase n has a tilde accent. This song does not make it to the playlist. I used the 920 Text Editor to view the .m3u file in question and the characters are properly displayed. I used a file browser to look that the file paths and that information is displayed correctly as well. This defect breaks my custom playlists that my syncing software uses to move files on/off my device and to also create "Radio Station" playlists. I never get to hear the songs because they don't make it into the playlists and I'm not warned about it.
  4. Thank you! I tested with your latest release. After I download the file and notify the media scanner, in a short amount of time Poweramp has notified tag scan complete and I can make further updates. Very responsive on your part.
  5. A mea culpa, the tracks are indeed showing up in Poweramp very quickly after I invoke MediaScannerConnection.scanFile I've not finished testing but I assume the same will be the case for deletes and file based play lists. I now anxiously await the ability to see this programmatically. Thank you.
  6. In the syncing app I'm developing, I'd like to give the user the option to enqueue a playlist - either replace the queue contents or add to the queue. I saw previous discussions regarding playlist creation and manipulation, so I wanted to make sure I can do this before attempting to develop this functionality. Can I programmatically delete queue entries and insert into the queue? Here's the primary reason for this: I have various playlists that use ratings and last played, and I combine these lists to simulate a "radio station" of sorts. Higher rated songs play more frequently and songs only repeat based on some last played criteria. As it stands, I have to manually clean the queue and insert the contents of my "Rock Station" playlist into the queue via the Poweramp UI. I rarely select music to play, I just run off the queue all the time, so I have to do this after every sync. As for the playlists themselves, I just put M3U and PLS in place so any player can pick them up.
  7. Thank you. Any idea when these changes will be in a release version of Poweramp? BTW, I'm also including code on the server side of my app to embed missing ratings and artwork into files before they are copied to the device. That should alleviate some common problems I've seen other people have.
  8. I'm implementing a syncing application that supports 2 way "sync". The server could be iTunes or another media management application. I need to update the server with play, skip, and rating information. I gather this info from Poweramp now and can update the server. As I said, it would be nice if Poweramp included rating in a broadcast, but I can query that information during a track change. What I really need is to be able to update ratings in your database when I copy a new song to the device. The cleanest way would be for me to know when it's inserted (when it's actually inserted, when a scan is complete, ???). I update the media store with a piece of code that looks like this: MediaScannerConnection.scanFile(context.getApplicationContext(), new String[]{filePath}, new String[]{getMimeType(filePath)}, new MediaScannerConnection.OnScanCompletedListener() { @Override public void onScanCompleted(String path, Uri uri) { Log.d(TAG, path + " was scanned successfully: " + uri); } }); However, I don't see Poweramp recognize this track until it Poweramp does it's own scan. Even if I just knew when Poweramp completed it's scan, I could check all ratings to ensure they are "correct". One way I briefly tested, was just to update the rating when it's played, but the Poweramp UI doesn't reflect the change. For example: - User updates rating in iTunes - Track is synced to device - User plays track in Poweramp - I see track is being played and update rating - User still sees no rating or old rating - User changes track in Poweramp, then returns to "new" track and then sees the new rating One other thing, I haven't seen a Poweramp widget that contains rating. I assume that's because that info is not broadcast which makes it a little more difficult for the widget implementor. When I get the time I'm going to knock out a widget based on your examples that shows track rating and allows edit. I heavily rely on ratings for various playlists, so keeping them in sync is important. As of now, I have to bring up the player and can't change the rating right from a widget.
  9. I have an app that copies tracks to a device and I would like to know the best way to update Poweramp. Currently I just copy the files and let the scan run. I'd prefer to somehow get these files into the Poweramp DB as quickly as possible so that I can update information there - namely the rating. public boolean setTrackRating(long trackID, int rating) { final Uri uri = PowerampAPI.ROOT_URI.buildUpon().appendEncodedPath("files").build(); ContentValues values = new ContentValues(); values.put("rating", rating); try { return (context.getContentResolver().update(uri, values, "_id = " + trackID, null) == 1); } catch (Throwable e) { Log.e(TAG, e.getMessage(), e); } return false; } Can I insert the appropriate records using Poweramp's content provider and, if so, are there foreign key constraints I need know? Is it better to somehow send an intent to ask Poweramp to run it's scanner? If I can insert into the DB, or be notified when this occurs, I can implement a clean solution. If I can get this working I'll have sync/reverse sync working without the need for some intermediate widget for ratings. As an aside, by listening for the various Poweramp intents, I'm able to record and reverse sync ratings chosen via the Poweramp UI back to the source of the tracks. BTW, getting the rating change via an intent would be much cleaner. Thanks.