Repository navigation
Add tags lyrics fetcher - #482
TilCreator wants to merge 1 commit into
Conversation
|
As I mentioned in #440 it would probably be best to let this be user configurable. Provide some reasonable default list of tags, but allow users to override it in their config. That way when someone comes along and asks why it isn't finding their lyrics, they can be pointed to the config option, rather than having to make a PR to update the hardcoded list. |
|
Good idea, I currently just use the default lyric tags of the tag lib, which should cover all, but you never know... |
|
The spacing of the new |
|
As the author of #273 this seems to be doing the first and most important part of what I originally suggested (reading lyrics from file tags), so I appreciate this PR. |
|
My implementation question is more how should it behave, so you don't have to be a good c++ programmer to comment on that. |
|
My idea was to have it similarly as you implemented it (if I understand the code correctly): offer it as an additional As you explicitely asked for comments, here are some quick thoughts: I'm not sure if it makes sense to write the lyrics also to a txt file as for the other fetchers – they are already locally available and reading the tag is probably similarly fast as reading from the txt file. Another small thing that came to my mind: I think it would make sense to have this one first by default. It is likely the fastest of the fetchers and the chance of getting wrong lyrics is nearly zero. But also here: As long as this is a configurable option, it's not a bit thing for me and others might disagree. As for the second part of my idea, being able to also write lyrics to the tag, this is more complex and there are multiple ways of doing it. Here are just some quick ideas,
Hope I could give you some input, thank you already for your work! |
arybczak
left a comment
There was a problem hiding this comment.
This looks good, thanks.
Can you fix indentation of the MPD::Song parameter (have a look at Files changed tab to see) and add the tags fetcher to lyrics_fetchers in the doc/config and settings.cpp? As suggested, it can be put as the first position.
|
Yay this is gonna be fixed ❤️❤️ |
|
Superseded by 9c27eec. |
This adds a new lyrics fetcher that reads the lyrics from the tags.
This implementation follows #440. It implements a new fetcher (like the genius one for example), but the lyrics are still written to a seperate txt file.
It would also be possible to implement this like suggested in #273, replacing the txt file with the lyrics tag. (with configuration parameters to preserve the old behavior)
Before continuing or implementing #273 I'm waiting for feedback.
I'm also not sure if I can find all lyrics tags, I currently only used bandcamp mastered music (flac, ogg, mp3) for testing.