Richie-Z / romajin

Romajin is an extension that serves as your guru within Spotify, offering both a Romaji converter and translator functionalities.
8 stars 0 forks source link

No translation #1

Closed 18skeltor closed 1 week ago

18skeltor commented 3 months ago

This is a great extension but unfortunately it doesn't seem to be translating the text to English :(

The proxy is http://localhost:8080/, I didn't change anything, but I only get romaji

Richie-Z commented 3 months ago

@18skeltor Since the Spicetify extension runs in the browser then accessing Google Translate API requires a proxy for bypass the CORS issue. The quick solution to overcome that issue, is using cors-anywhere.

Currently I don't have a server to host a cors-anywhere, but there is a demo to access cors-anywhere, you can request the demo in this site after that you can change the proxy from http://localhost:8080 to https://cors-anywhere.herokuapp.com/

todayisyokult commented 2 months ago

@Richie-Z Since the Spicetify extension runs in the browser then accessing Google Translate API requires a proxy for bypass the CORS issue. The quick solution to overcome that issue, is using cors-anywhere.

Currently I don't have a server to host a cors-anywhere, but there is a demo to access cors-anywhere, you can request the demo in this site after that you can change the proxy from http://localhost:8080 to https://cors-anywhere.herokuapp.com/ ————————————————————————————

does it means After i applyed the temporary access to the demo server

image

then copy“https://cors-anywhere.herokuapp.com/” and fills into CORS Proxy? image 🤔️ thank you for your answer

Richie-Z commented 2 months ago

@Richie-Z Since the Spicetify extension runs in the browser then accessing Google Translate API requires a proxy for bypass the CORS issue. The quick solution to overcome that issue, is using cors-anywhere. Currently I don't have a server to host a cors-anywhere, but there is a demo to access cors-anywhere, you can request the demo in this site after that you can change the proxy from http://localhost:8080 to https://cors-anywhere.herokuapp.com/ ————————————————————————————

does it means After i applyed the temporary access to the demo server image

then copy“https://cors-anywhere.herokuapp.com/” and fills into CORS Proxy? image 🤔️ thank you for your answer

yup, but remember the cors-anywhere heroku is has very limited trials. maybe you can use my free self-served cors-anywhere: https://web-production-05c1.up.railway.app/

bentohere commented 3 weeks ago

I've tried to fill in the CORS Proxy box with https://web-production-05c1.up.railway.app/ and https://cors-anywhere.herokuapp.com, but neither the romanji nor the translation worked. Do you know how to trigger the change?

todayisyokult commented 3 weeks ago

I've tried to fill in the CORS Proxy box with https://web-production-05c1.up.railway.app/ and https://cors-anywhere.herokuapp.com, but neither the romanji nor the translation worked. Do you know how to trigger the change?

maybe you can try lyric plus(https://spicetify.app/docs/advanced-usage/custom-apps/#lyrics-plusimage or this Extensions image

bentohere commented 3 weeks ago

I've tried to fill in the CORS Proxy box with https://web-production-05c1.up.railway.app/ and https://cors-anywhere.herokuapp.com, but neither the romanji nor the translation worked. Do you know how to trigger the change?

maybe you can try lyric plus(https://spicetify.app/docs/advanced-usage/custom-apps/#lyrics-plus) image or this Extensions image

I now have the Beautiful Lyrics extension for the romanization needs. Lyrics Plus only provides translation to Chinese on mine, so I was looking for an extension that has both romanization and translation features actually works.

Richie-Z commented 3 weeks ago

I've tried to fill in the CORS Proxy box with https://web-production-05c1.up.railway.app/ and https://cors-anywhere.herokuapp.com, but neither the romanji nor the translation worked. Do you know how to trigger the change?

I don't know if this will answering or not but I will answer it. Now to show the lyrics we must have a premium account 😢, so this extension will not works if we don't have a premium account.

Currently working on integrating the free lyric providers to replace the current Spotify lyric provider.

bentohere commented 3 weeks ago

I've tried to fill in the CORS Proxy box with https://web-production-05c1.up.railway.app/ and https://cors-anywhere.herokuapp.com, but neither the romanji nor the translation worked. Do you know how to trigger the change?

I don't know if this will answering or not but I will answer it. Now to show the lyrics we must have a premium account 😢, so this extension will not works if we don't have a premium account.

Currently working on integrating the free lyric providers to replace the current Spotify lyric provider.

Thanks for the response! My account is premium already, though. I'm not sure what these all should be, but that would be very awesome if an update would fix this. It's promising after all. :D

Richie-Z commented 3 weeks ago

I've tried to fill in the CORS Proxy box with https://web-production-05c1.up.railway.app/ and https://cors-anywhere.herokuapp.com, but neither the romanji nor the translation worked. Do you know how to trigger the change?

I don't know if this will answering or not but I will answer it. Now to show the lyrics we must have a premium account 😢, so this extension will not works if we don't have a premium account. Currently working on integrating the free lyric providers to replace the current Spotify lyric provider.

Thanks for the response! My account is premium already, though. I'm not sure what these all should be, but that would be very awesome if an update would fix this. It's promising after all. :D

My account is on the free plan, so I can't figure it out what's causing this failure 😢

DhruvSinha2003 commented 2 weeks ago

Currently working on integrating the free lyric providers to replace the current Spotify lyric provider.

How long do you think this will take?

Richie-Z commented 2 weeks ago

Update: I've bought the premium, and the extension still working fine @bentohere

image
Richie-Z commented 1 week ago

How long do you think this will take?

@DhruvSinha2003 Soon enough, maybe in the late of June or early July 🤔

Richie-Z commented 1 week ago

For anyone who can't see the translation, that's because the translator API need to through CORS proxy to access the functionalities.

Currently I have made the default CORS Proxy to my free plan railway app of cors-anywhere (da4fcef4af76583a866d56acb041b9b58fd3b42b). But since it's on the free plan, the changes of quota has run out is high, so I advise to do self hosted cors-anywhere on railway.app

bentohere commented 1 week ago

Update: I've bought the premium, and the extension still working fine @bentohere

image

image

image Thank you for the update. It just, did nothing. The link is always on the box (How do I put it, like, the link is always there; not disappear once I close the Spotify app). I've requested temporary access to https://cors-anywhere.herokuapp.com/corsdemo as well.

Richie-Z commented 1 week ago

Hmm, that's a weird case. Because everything that you mention supposedly it works (related to the meme: but, in my computer is works 😂).

Maybe you can send me the console message. To achieve this you need enable the devtools by typing this spicetify enable-devtools in your terminal.

to see your saved value of the CORS proxy or any of it, you can go to Application->Local Storage->Type romajin in the filter input box

image

cc @bentohere

bentohere commented 1 week ago

Hmm, that's a weird case. Because everything that you mention supposedly it works (related to the meme: but, in my computer is works 😂).

Maybe you can send me the console message. To achieve this you need enable the devtools by typing this spicetify enable-devtools in your terminal.

  • And then open lyric box,
  • right click to any of it,
  • and go to the console sections.

to see your saved value of the CORS proxy or any of it, you can go to Application->Local Storage->Type romajin in the filter input box image

cc @bentohere

Woah, I appreciate the help! Is this it? image

image

Richie-Z commented 1 week ago

Woah, I appreciate the help! Is this it? image

image

Yep, that's it. But I don't saw any error messages produced by Romajin in your console. Are the lyric box is already opened? and for make sure can you give me your installed extensions or custom apps so I can reproduce it myself