Conversation
|
I will review this tonight |
|
The code to fetch lyric in tag editor is very ugly as I cannot do it by calling lyricPopup. The problem is, lyricPopup is embeded with go routines, and I need to update content of Dropdown and textview based on the result from lyricpopup. When doing so, my code of updaing runs before getting lyrics. I tried to use channel or waitgroup, but both method end up with totally freezing. Finally I have to copy code from lyricPopup again. Do you have some suggestions? Thanks. |
|
I think |
If |
I think |
But the problem here is, between GetLyricOptions and GetLyric, there is a manual selection step involved. |
Also, the code to fetch en lyric and cn lyric are different. |
Actually I'm using GetLyricOptions directly right now. It's just I have to repeat similar code for 3 buttons, and it doesn't feel good. |
|
I think we have three problems here:
|
For every language, they should be in their own file, example for english Lyric package should expose func GetLyric(lang string) string {
switch lang {
case "jp": return getLyricJp()
case "cn": return getLyricCN()
default: return getLyricEn()
}
}This will make it easier to support more language. |
|
Yes and I've done it in the latest push. Now it feels much better. |
I think language option to fetch lyric should be dropdown instead of button and below the dropdown should have the "fetch" button. |
| LangExt string | ||
| ServiceProvider string | ||
| SongID string // SongID and LyricID is returned by cn server. It's not guaranteed to be identical | ||
| LyridID string |
|
I mean the transparent color around the line. Not the border padding itself. I didn't notice this before since I was using dark desktop background. |
Probably this pr in tview is related |
|
this pr doesn't even get merged rivo/tview#524 |
|
how about this one? seems more active |
|
We will try converting library to https://gitlab.com/tslocum/cview on a new pr. Let's just focus on merging current pr to the master branch. |
|
Are there anything else to be done on this pr? |
|
Let me figure out the color inside dropdown in a minute. |
|
Some colors cannot be set. So nothing to change for now. Thanks. |
|
If you done, please remove the codes that have been commented out. |
|
done. |
|
Thank you for your contribution! Looking forward for more pr from you 🚀 |



Tag editor can fetch tag, fetch lyrics, preview lyrics, delete lyrics now.