Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Folder layout requirements unclear #185

Closed
jgdye opened this issue Jan 20, 2022 · 7 comments · Fixed by #186
Closed

Folder layout requirements unclear #185

jgdye opened this issue Jan 20, 2022 · 7 comments · Fixed by #186

Comments

@jgdye
Copy link
Contributor

jgdye commented Jan 20, 2022

I'm a little confused on what the required directory structure is. According to the README, an album must be in a single folder, but according to #89, a folder must contain files from only one album. What is the actual requirement? Is it both? Whatever the requirement, I'm happy to submit a pull request that clarifies the text in the README.

@sentriz
Copy link
Owner

sentriz commented Jan 20, 2022

an album must be in a single folder, a folder must contain files from only one album

to me this means the same thing, maybe the second one is the better way of explaining it, which is to say

# don't do this
/a
/a/b
/a/b/c
/a/b/c/e
/a/b/c/e/f
/a/b/c/e/f/album 1 track 1.flac
/a/b/c/e/f/album 1 track 2.flac
/a/b/c/e/f/album 1 track 3.flac
/a/b/c/e/f/album 2 track 1.flac
/a/b/c/e/f/album 2 track 2.flac
/a/b/c/e/f/album 2 track 3.flac

# do this
/a
/a/b
/a/b/c
/a/b/c/e
/a/b/c/e/f
/a/b/c/e/f/g
/a/b/c/e/f/g/album 1 track 1.flac
/a/b/c/e/f/g/album 1 track 2.flac
/a/b/c/e/f/g/album 1 track 3.flac
/a/b/c/e/f/h
/a/b/c/e/f/h/album 2 track 1.flac
/a/b/c/e/f/h/album 2 track 2.flac
/a/b/c/e/f/h/album 2 track 3.flac

hope this makes sense and would be happy see a better explanation in the readme

thanks!

@jgdye
Copy link
Contributor Author

jgdye commented Jan 20, 2022

That shows that each folder can only have a single album. To me, an album must be in a single folder means:

# don't do this
/a
/a/b
/a/b/album 1 track 1.flac
/a/c
/a/c/album 1 track 2.flac

# do this
/a
/a/b
/a/b/album 1 track 1.flac
/a/b/album 1 track 2.flac

but doesn't necessarily imply that folders must contain only one album. I'll update the README to say that it is one album per folder, I just need verification that it is also one folder (at the deepest level) per album.

@sentriz
Copy link
Owner

sentriz commented Jan 20, 2022

yeah

one album per folder
one folder (at the deepest level) per album

both of these are a must. for your situation are you asking because of multi disc albums? where you may have cd1 and cd2 in different folders?

@jgdye
Copy link
Contributor Author

jgdye commented Jan 21, 2022

No, I use disc number tags for that. Your system melds well with my library, I just wanted to know because I assumed if I wasn’t sure what the system was there may be others that also didn’t and had a system where it mattered. Aside from using different folders for different discs (where I assume most would want them to be considered separate albums if they organized their music that way), I could see someone choosing to do this for compilation albums so all of an artist's songs are in the same folder tree.
I’ve submitted a pull request with what seems like clearer language to me, feel free to edit to taste.

@unhammer
Copy link

As far as I can tell, they also need to have the same album artist, or at least not different artist tags? I had a compilation album, all in one folder, where there were many different artists (like a movie soundtrack), but with no album-artist tag, and gonic just seemed to pick some arbitrary artist and only show the tracks from that one, even though they had the same album tag and were in the same folder. When I added the album-artist tag "Various" to all the tracks, it managed to show all of them. What's the exact rule here? Maybe it should also be added to the README :-)

(Also, would it be possible to WARN in the logs when tracks are ignored due to wrong album/artist?)

@sentriz
Copy link
Owner

sentriz commented Feb 24, 2022

thanks @unhammer

yeah ideally all the tracks in the the folder would have the same album artist too, since there should only be one album.
and every track in an album should have the same album artist tag by nature

but I would say that was a bug where gonic wouldn't pickup some tracks if there was no/differing album artist tags

it was fixed already on the master branch in the last week, or if not there then on the develop branch. either way in the next release of gonic, those edgecases should be fixed since the scanner has a lot of tests now 😎

@unhammer
Copy link

That's good to hear, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants