this post was submitted on 09 Nov 2024
107 points (98.2% liked)

Selfhosted

40113 readers
856 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 1 year ago
MODERATORS
 

So I self host all my music via Plex and for some artists and albums Plex (via Plex pass I believe) pulls lyrics and can show you like Spotify etc but some artists are not supported/popular. I found a couple apps that 'worked' to download lyrics but the best one was this https://github.com/tranxuanthang/lrcget

Just thought I would share for others who would want to do the same I have a large library and adding lyrics was not hard at all and found most out of the gate. If you have other solutions I would love to hear about them maybe they are better lol

It adds the file as same name in same folder that song is located

top 16 comments
sorted by: hot top controversial new old
[–] [email protected] 2 points 2 days ago

For those on Jellyfin, there's a plugin that can pull lyrics from lrclib. Not sure how it exactly compares to this, but it works for me.

[–] [email protected] 13 points 3 days ago (1 children)

For my CLI homies, there's syncedlyrics.

Be advised: several Subsonic servers (including gonic and Navidrome) do not support lyric files unless they're embedded, and syncedlyrics will only put the lyrics in .lrc files. So getting lyrics in clients can be a two-step process: download the .lrc's, then run a script to embed them in the song files. I've seen a script to do the latter, but I haven't tried it. I'll send a patch to gonic to read lrc files, during the Christmas holiday most likely.

[–] [email protected] 2 points 3 days ago (1 children)

just found out there is an "Experimental" setting for it to "Try to embed the lyrics to the track files when possible" setting have not tried it myself

[–] [email protected] 2 points 1 day ago* (last edited 1 day ago) (2 children)

I tried it but in my case it set all the MP3s to 0 bytes. Luckily, I was able to get them back through snapraid. But then I noticed something in snapraid where I needed to run a sync.

What I didn't see is that it set all the FLAC files to 42 bytes, so they didn't get restored when I checked for 0 bytes filea, which means that it synchronised all those 42 byte files.

So I just lost all my FLAC files. I can't be mad at the dev, it's an experimental feature. This is just a word of warning for others to do a proper backup before you try it.

[–] [email protected] 2 points 1 day ago (1 children)

LRCGET author here, I'm really sorry to hear about this issue. Could you let me know which platform you're using (Windows, Linux, or macoS)?

[–] [email protected] 2 points 1 day ago* (last edited 1 day ago) (1 children)

I'm running Arch Linux, using the 0.5.0 AppImage.

I have my music collection on a NAS running Debian which I use NFS to mount it to /mnt/NAS. I then have a symlink to that in ~/Music/NAS. That symlink is what I added as the scanning library for LRCGET.

From what I can tell, the files that were corrupted were the ones that found synced lyrics. If it matched plain lyrics, the file was okay, but I don't think it embedded the plain lyrics either.

I'll setup a couple test folders, trying to test all the combinations of FLAC and MP3 files, synced and plain lyrics, and through the NAS symlink and on the local machine.

I do want to add that LRCGET has been great. It was dead simple to setup and use, and with the exception of the experimental feature, has worked exactly as intended. I personally just like to have everything in one file which is why I tried out the embedding feature.

The FLAC files that I care about, I was able to partially restore them from high-quality MP3s that I had converted from the FLACs. And I have a bunch of other FLAC copies from a folder I had yet to clean out (hooray procrastination), I also still need to check an old drive that should have a copy of my whole collection from a couple years ago, I'm sure that will have some more, too. Nothing was lost that can't be recreated.

[–] [email protected] 1 points 1 day ago* (last edited 1 day ago) (1 children)

Weird. I just made two folders, one remote and one local, with one of each FLAC and MP3, with Synced and Plain lyrics. All of them successfully have embedded lyrics. I'm curious if it would have anything to do with the scanned folder size. It worked with a folder with only 4 tracks in it, but not in first case with 9000 tracks in sub directories.

The only odd thing is that the mp3 with synced lyrics downloaded the .LRC file but the embedded lyrics are plain.

[–] [email protected] 1 points 21 hours ago

Hmm, I still suspect the symlinked NAS drive might be the culprit here, as it was the setup I didn’t test with. Directory size should not be related to this.

For MP3 files, synced lyrics are embedded in the SYLT tag. Unfortunately, not many music players support this across platforms. For example, MusicBee supports reading SYLT, but tools like MP3Tag and PuddleTag do not.

[–] [email protected] 1 points 1 day ago* (last edited 1 day ago)

Damn... I am so sorry I know how much it sucks to loose a music collection it's happened to me before. Hope you can rebuild your collection.

[–] [email protected] 3 points 2 days ago

Just ran this on my entire music library of 73000+ songs. Worked like a charm.

[–] [email protected] 7 points 3 days ago (2 children)
[–] [email protected] 4 points 3 days ago

Nope. This is not my project I was simply looking for solutions I used the appimage myself

[–] [email protected] 3 points 3 days ago

Looks like it's intended to be used interactively from your desktop.

[–] [email protected] 5 points 3 days ago (1 children)

I've slowly been tagging my music collection and synced lyrics is something I've been very eager to add.

I've wanted something like this for a long time, thanks for sharing

[–] [email protected] 1 points 2 days ago (1 children)

Are you using musicbrainz picard to tag your collection, or something more manual?

[–] [email protected] 1 points 2 days ago

Yeah, Picard has been great. Long ago, I did a first pass where I dumbed my whole collection in, scanned and then just hit save. I got rid of any of the files that had a (1) or (2) and so on at the end of the file name, cleared out most of the duplicates.

I've since been sorting one artist at a time, but making sure the tagging is more cohesive, and not have some songs, for example, split between a compilation/greatest hits album and the original.

I've tried using beets in the pasted, but it either glitched or I didn't set it up right, but it created a lot of duplicates of things. I found it a lot more tedious to use, too.