arr-scripts icon indicating copy to clipboard operation
arr-scripts copied to clipboard

[FEATURE] - Updates Beets to 1.6.1 in Lidarr scripts

Open Intrinsically-Sublime opened this issue 11 months ago • 4 comments

Beets development seems to have stopped some 3 years ago but there is a 1.6.1 branch that has a lot of updates, bug fixes, and new features. I am interested because I use the LRCLIB update to inject synchronised lyrics into the files rather than just plain text. It also provides more fields and data providers. Please see the change log

https://docs.beets.io/en/latest/changelog.html

The bad news is that it is not available via pip (or at least not that I can see) so you would have to include it through another means. It is available in the linuxserver docker nightly https://github.com/linuxserver/docker-beets/tree/nightly

If I understood how docker files worked I would try and make it work but that is over my head at the moment.

Intrinsically-Sublime avatar Feb 29 '24 04:02 Intrinsically-Sublime

I don't think its true that the docker build uses the 1.6.1 dev version. I'm guessing you did a google search for something like: "beets 1.6.1". It looks like it picks up 1.6.1 from the mp3gain package:

image

It looks like there hasn't been a release in awhile, but it is being actively developed.

hockeygoalie35 avatar Feb 29 '24 04:02 hockeygoalie35

I am running the nightly one from Linuxserver separately and it is 1.6.1

docker exec -it beets beet version beets version 1.6.1 Python version 3.11.8

Edit: the pip one is 1.6.0 for sure.

Intrinsically-Sublime avatar Feb 29 '24 04:02 Intrinsically-Sublime

Ah, I understand, my apologies! Look towards the bottom of this discussion. Looks like a new release is imminent.

hockeygoalie35 avatar Feb 29 '24 04:02 hockeygoalie35

@Intrinsically-Sublime Soon... 👀

hockeygoalie35 avatar Apr 01 '24 13:04 hockeygoalie35

Looks like Beets 2.0 has been released! I'm also intrested in using LRCLIB...I'll dig into it!

hockeygoalie35 avatar Jun 19 '24 03:06 hockeygoalie35

@RandomNinjaAtk , would it be as simple as adding:

To beets-config.yaml

lyrics:
    auto: yes
    sources: lrclib genius tekstowo
    synced: yes

to setup.bash, add beautifulsoup4 to the pip install?

Beets Documentation Reference

hockeygoalie35 avatar Jun 19 '24 04:06 hockeygoalie35

I can confirm that it worked! I made a fork with this setup (plus updating beets-config-lidarr.yaml), and it appears to download the .lrc and also embed the contents in the flac itself. Pushing a PR to implement.

Beets grabbing the lyrics

image

.lrc files included

image

Embeded in tags

image

Just for kicks, here it is in Plexamp

image

hockeygoalie35 avatar Jun 20 '24 03:06 hockeygoalie35

@Intrinsically-Sublime

I am interested because I use the LRCLIB update to inject synchronised lyrics into the files rather than just plain text.

Any chance you can show me how to do this on my existing library? This only works going forward, of course.

hockeygoalie35 avatar Jun 20 '24 03:06 hockeygoalie35

@hockeygoalie35 I think you need to set the force flag to yes and then process the entire library https://beets.readthedocs.io/en/stable/plugins/lyrics.html I imported my entire library using the newer version.

Intrinsically-Sublime avatar Jun 20 '24 05:06 Intrinsically-Sublime

@Intrinsically-Sublime I think we're good here, it should be working as expected. Mind closing the issue?

hockeygoalie35 avatar Aug 09 '24 02:08 hockeygoalie35