mctofu / musiclib Goto Github PK
View Code? Open in Web Editor NEWGRPC service for browsing and searching a local music library
License: MIT License
GRPC service for browsing and searching a local music library
License: MIT License
I'm curious if the library can be refreshed automatically. Having to kill the server everytime I add new music to the folder is annoying.
I noticed that files with .ape
, .opus
and .wv
(WavPack) extensions were not listed by deadbeef-library. After a quick inspection:
Lines 15 to 21 in 40d61b3
I tried to add said extensions to the list and re-building musiclib-grpc-server
:
var tagExts = map[string]struct{}{
".mp3": {},
".m4a": {},
".flac": {},
".ogg": {},
".wav": {},
+ ".ape": {},
+ ".opus": {},
+ ".wv": {},
}
❯ go build -o musiclib-grpc-server ./cmd/server
However, the following error keeps being printed for any .opus
file detected:
❯ journalctl --user -u musiclib-grpc-server.service
musiclib-grpc-server[402651]: 2022/09/22 16:23:51 failed to read tag from /path/to/file.opus: expected 'vorbis' identification type 1
[...]
musiclib-grpc-server[402651]: 2022/09/22 16:26:17 Scanned root paths
musiclib-grpc-server[402651]: 2022/09/22 16:26:17 Indexed artist/album
musiclib-grpc-server[402651]: 2022/09/22 16:26:17 Indexed file paths
musiclib-grpc-server[402651]: 2022/09/22 16:26:17 Indexed genres
musiclib-grpc-server[402651]: 2022/09/22 16:26:17 Indexed years
musiclib-grpc-server[402651]: 2022/09/22 16:26:18 Indexed modified dates
musiclib-grpc-server[402651]: 2022/09/22 16:26:18 Loaded library
musiclib-grpc-server[402651]: 2022/09/22 16:26:18 Starting server
The .opus
files are properly tagged and DeaDBeeF recognizes them when I add them to a playlist. I'm using Kid3 for tagging and I cannot add any "Tag 1" entry with opus files, only "Tag 2", which are then displayed as "Tag 2: Vorbis":
Regarding .ape
and .wv
files, no error is printed when starting the server, but they're still not displayed in DeaDBeeF despite being added to the list in scan.go
file. Kid3 shows "Tag2: APE" for both .ape
and .wv
files (properly tagged too and correctly parsed by DeaDBeeF):
Any suggestion on how I could achieve this?
Thanks.
There's no documentation. How do I build this?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.