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

Translating subs #2684

Open
FiyiK opened this issue Sep 27, 2024 · 12 comments
Open

Translating subs #2684

FiyiK opened this issue Sep 27, 2024 · 12 comments

Comments

@FiyiK
Copy link

FiyiK commented Sep 27, 2024

Describe the bug
Translating 1 subtitle takes 10 minutes (depending on the characters)

To Reproduce
Steps to reproduce the behavior:
Click translate

Expected behavior
Translating happened in a few seconds before

Software (please complete the following information):

  • Bazarr: newest

  • Radarr version newest
    bazarr.log

  • Sonarr version newest

  • OS: W11

LOG added

@morpheus65535
Copy link
Owner

Please enable debug log in Settings-->General and run the translation again. Disable debug logging then provide the new log file.

@FiyiK
Copy link
Author

FiyiK commented Sep 28, 2024

Log added:
bazarr (1).log

@FiyiK
Copy link
Author

FiyiK commented Sep 28, 2024

I forgot to disable debug logging. I disabled and added new log file;
bazarr (2).log

I must say, today was a little faster then yesterday, but still very slow compared to previous bazarr editions.

@morpheus65535
Copy link
Owner

I forgot to disable debug logging. I disabled and added new log file;

bazarr (2).log

I must say, today was a little faster then yesterday, but still very slow compared to previous bazarr editions.

I'm AFK for the weekend and I'll look into this on Monday.

Unfortunately, we'll never be able to use Google Translate the way we did before since it's corrupting text format on multilines text sent as a whole. We have to send each line as a separate request so it take more time but at least it provide working subtitles.

@FiyiK
Copy link
Author

FiyiK commented Sep 28, 2024

Do we have any possibilities of AI translate or Bing translator instead for bazarr?

@morpheus65535
Copy link
Owner

We use the deep-translator module to interface with Google Translate. It supports other translation solutions but it would require additional code to support them (frontend and backend). https://deep-translator.readthedocs.io/en/latest/

@FiyiK
Copy link
Author

FiyiK commented Sep 29, 2024

I would like to support you again if we could add such feature.. What do you think?

@morpheus65535
Copy link
Owner

We're dependent on the throttling done on Google side. If they ask to slow down, we comply since we do not want your IP to be blocked from further requests. It may be the reason why you get slow results using batch mode. Single element translation seems to works fine.

@morpheus65535
Copy link
Owner

From your logs, I see 61 seconds to send 988 requests to Google Translate. Of course it's not as good as it was but it's not that bad. All other translations took less than a minute. We're far from the 10 minutes you said earlier.

@morpheus65535
Copy link
Owner

I would like to support you again if we could add such feature.. What do you think?

I'm taking about this. We surely need to think about an alternative. You're donation will of course be appreciated once we've implemented such feature.

@FiyiK
Copy link
Author

FiyiK commented Oct 2, 2024

No true, maybe the last time i put that log, it was a little faster as usual, but it is true that sometimes when i badge translate, over time it gets slower and slower even to 5/10 minutes for one sub. I remember you told me some time ago to make a donation externally. Can you point me in the right direction? I'll donate some funds in advance as a sign of appreciation.

Your awesome as always. Thank you to prioritize and look for alternative options.

@morpheus65535
Copy link
Owner

You can find the donation link in Bazarr UI at the bottom left (small heart icon).

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