Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

translation of lyrics #1262

Open
ErfanM98 opened this issue Mar 10, 2024 · 1 comment
Open

translation of lyrics #1262

ErfanM98 opened this issue Mar 10, 2024 · 1 comment

Comments

@ErfanM98
Copy link

ErfanM98 commented Mar 10, 2024

Is your feature request related to a problem? Please describe.
When I was searching through this awesome repo, I came across this :

pub struct LyricsInner {
    // TODO: 'alternatives' field as an array but I don't know what it's meant for
    pub fullscreen_action: String,
    pub is_dense_typeface: bool,
    pub is_rtl_language: bool,
    pub language: String,
    pub lines: Vec<Line>,
    pub provider: String,
    pub provider_display_name: String,
    pub provider_lyrics_id: String,
    pub sync_lyrics_uri: String,
    pub sync_type: SyncType,
}

I want to add that the 'alternatives' field is actually the translation of the lyric. This is a Chinese repo that manipulates Spotify to translate the result to Chinese.
Describe the solution you'd like
I did not see any tracks on the official Spotify app that has the translation. However, I modified my requests according to the mentioned script and I managed to see the feature that is something like this (on iOS):

Additional context
By the way, I did not find any .proto files related to lyrics. Could you please help me to locate that files?

@roderickvd
Copy link
Member

Great! Could you open a PR to document that?

I don't remember where I got the lyrics struct from. Maybe deserialising the JSON, I think that was it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants