smithdtyler / prettygoodmusicplayer

A music player app for Android hits the basics hard
GNU General Public License v3.0
51 stars 23 forks source link

Subfolders are not displayed when parent folder doesn't contain files #98

Closed Vrihub closed 8 years ago

Vrihub commented 8 years ago

Consider this scenario: Folder A doesn't contain music files, instead it contains folder B and folder C (which contain music files). If I navigate to folder A, PGMP will display it as an empty folder, without displaying B and C. So music files in B and C are never reachable.

This bug doesn't happen when folder A is an immediate subfolder of the the root folder ("Music Directory" as configured in the settings), but if it's 2 or more levels down in the folder tree it will happen.

Tested on Version 3.2.15, on android 4.2.2

smithdtyler commented 8 years ago

I need to think about this issue a bit. What you describe is, for the most part, the intended behavior of the app. That is, it expects that music is arranged by artist, then album, then songs. It doesn't expect a deeper level of nesting.

This approach allows it to avoid the overhead of maintaining a database of known music files, while still presenting an organized view. The downside is it's not good at displaying content that isn't organized as expected.

awquest commented 8 years ago

This surprised me, too. My folder structure varies a lot, e.g. some multi disc albums have each disc in a separate subfolder, also some podcasts etc.

Are the artist name and album title used for anything else except the "now playing" view? If not, maybe it could be approached like this: The user configures a root directory (which could even default to /sdcard), and when they play (root)/something/Artist/Album/1/Song.mp3, the "now playing" view shows all components below the root directory, i.e.

... scrolled to the bottom if it doesn't all fit on the screen. In other words, PGMP would have no opinion about the meaning of the folder structure, and thus be completely flexible.

Thank you by the way for your work. It is nice to finally have a good folder based open source player.

Dreadeath commented 8 years ago

Any chances to see this fix? I mean why should structure be hardcoded in any way? It is very random for random people, just go down until you find music files, that's all this app need :)

smithdtyler commented 8 years ago

I do plan to get a fix out, but this project is a bit lower than a few others in my queue, so I apologize for the slowness of my updates. There's a branch called playall where I've been doing some work related to this task.

smithdtyler commented 8 years ago

The playall branch has been updated with a fix to this issue. I'll merge the fix into master after a bit more testing. You're welcome to test it out too!

smithdtyler commented 8 years ago

Beta release: https://drive.google.com/file/d/0BxNDTlnbuMgUNHN0R3NmWFdDQzQ/view?usp=sharing

smithdtyler commented 8 years ago

This issue has been addressed in version 3.3.0. I've added a tag for this version, so it should be available on f-droid in 24-48 hours.

Dreadeath commented 8 years ago

Hm, that's not what I expected. PGMP is now just pulling at some point all music files in one list, so if there are other "layers" such as albums, it becomes a mess of songs from all albums...

smithdtyler commented 8 years ago

I'm open to making it more flexible. Any specific suggestions as to how to handle arbitrary folderd epth? On Feb 27, 2016 8:25 AM, "Dreadeath" notifications@github.com wrote:

Hm, that's not what I expected. PGMP is now just pulling at some point all music files in one list, so if there are other "layers" such as albums, it becomes a mess of songs from all albums...

— Reply to this email directly or view it on GitHub https://github.com/smithdtyler/prettygoodmusicplayer/issues/98#issuecomment-189650849 .

Dreadeath commented 8 years ago

Well...if app finds music files in folder it is in, then sort all these files by tracknumber and alphabetically? Otherwise act as file manager (sort of), just browse folders from the root. It is assumed that music is already sorted by folders, right? So there is no need to automate things more and go through all directories to find music and make one big playlist. Also use of other color in titles would help if there are folder(-s) and music files in one folder.