Closed timur-j-alpin closed 8 years ago
Huh... This has worked in the past, perhaps we've had a regression... I'll check it out. On Feb 25, 2016 08:26, "hatul-madan" notifications@github.com wrote:
Using version 3.3.0 i see directories containing .flac files as empty. Other players play flacs with no problems. Looks similar to issue#95, but that one seemed format-independent. Tested on two different devices.
— Reply to this email directly or view it on GitHub https://github.com/smithdtyler/prettygoodmusicplayer/issues/110.
This is probably my fault: https://github.com/smithdtyler/prettygoodmusicplayer/pull/106 I'll see if I missed some flac media type. Otherwise can just merge the generated extension list with the static we had before, not ideal but it'll work.
I missed the audio/x-flac media type, but I don't know if that will fix it.
Here's an apk with the fix: https://github.com/undu/prettygoodmusicplayer/releases/download/3.3.0a/prettygoodmusicplayer-debug.apk
You'll have to delete the existing app to be able to install this one.
Check back if it works, otherwise we can apply a fix that merges the two extension lists.
undu, thank you for your help! I tried your apk, but flacs are still invisible.
I've uploaded another binary to the same direction, let me know if it fixes the issue.
Tried it. No, unfortunately it doesn't.
Have you tried putting mp3 files to the same directory? This isn't a regression caused by my patch, I feel the issue you're having is due to https://github.com/smithdtyler/prettygoodmusicplayer/issues/104
I tried to put mp3 in the directory that contained flac files only. Initially in PGMP I saw it as empty, after mp3 addition I was able to see the added mp3 file in this folder, but nothing more. It's not #104, the folder now is "music/flac/album", and #104 manifests itself in mixing tracks from different albums.
Still the same thing, sadly.
I'm sorry, for some reason the last change didn't go through, can you re-download and try again?
Tried again - no difference yet.
Have you tried the previous stable version?
https://f-droid.org/repo/com.smithdtyler.prettygoodmusicplayer_67.apk
Can you post the folder structure you have? A sample file would be good too. On Feb 26, 2016 2:43 PM, "undu" notifications@github.com wrote:
Have you tried the previous stable version?
https://f-droid.org/repo/com.smithdtyler.prettygoodmusicplayer_67.apk
— Reply to this email directly or view it on GitHub https://github.com/smithdtyler/prettygoodmusicplayer/issues/110#issuecomment-189476557 .
Have you tried the previous stable version?
Tried: this one worked.
Can you post the folder structure you have?
It's large, but can be seen here: http://pastebin.com/HjvYwdZ7
A sample file would be good too.
A sample flac file? For example, this one was invisible as any other: http://www.lindberg.no/hires/test/2L-111_15_stereo-44k-16b.flac
Sharing my debugging notes:
Utils.decodableMediaTypes is resolving to
MediaTypeUtils.extensionToMimeTypeMap resolves to
Looks like we're claiming it's not supported because the media type for flac doesn't exactly match the MimeType.
When I originally added the file type filter, it was mostly to avoid showing the user files that were in the folder by accident, or were added by some OS level nonsense (like OS X's .DS_Store files). The player will fail gracefully if it tries to play a file and fails. Unless I'm convinced otherwise, I'm going to relax the restriction so that if the extension shows up in MediaTypeUtils, we call it good.
That test file is working for me with version 3.3.1 (just tagged). I've not tested it with your folder structure yet. Please let me know if this solves the issue.
Tried it, now it works! All flacs are visible and playable. Thank you!
This fix is included in 3.3.2
Using version 3.3.0 i see directories containing .flac files as empty. Other players play flacs with no problems. Looks similar to issue#95, but that one seemed format-independent. Tested on two different devices.