WIP: preliminary git-annex support #146
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Supysonic doesn't deal well with git-annex (GA)
repositories. Because GA stores files as symlinks to an object storage
in
.git/annex/objects
, all the normalArtist/Album/File.mp3
filesare ignored and instead the actual files in
.git
are parsed.Those files have funky filenames based on the file hash, for example:
This makes most Supysonic client show the garbled filename instead of
the song title and breaks most album grouping behavior.
This patch makes the scanner follows symlinks when scanning and
ignores hidden directories (so
.git
). It's a WIP for now becauseideally the parser would be rewritten to use the faster
os.walk
andsupport arbitrary ignore patterns or enable the user to configure
whether symlinks must be followed (see also #144).
But I've been using this patch on my side and it works sufficiently
well.