Coder Social home page Coder Social logo

Comments (7)

mikesteele avatar mikesteele commented on May 31, 2024

Hi! First and foremost, sorry about the Google Translate 503. You can see from previous releases (v.1.5.0.1 and v1.4.3.1) that patching Google Translate has become a pain point of the project. I'm hoping to remove Google Translate reliance entirely in 2019. (I don't believe many users use/like Google Translate-d second captions)

As for why Netflix official captions use Google Translate, it's because I haven't cracked how Netflix encored their caption request URLs. You can see some sample requests here in the background page tests: https://github.com/mikesteele/dual-captions/blob/master/src/tests/background.test.js#L48 When I get the response, it doesn't have any language-related metadata in it, so I have to use Google Translate to guess the language. (See https://github.com/mikesteele/dual-captions/blob/master/public/content-scripts/netflix/processor.js#L61)

In the "no-more-Google-Translate" version of this project, I think asking the user "what language is this?" is the easiest approach. If you want to patch this, you could replace processor.__guessLanguageOfCaptions with other code (perhaps prompting the user) in the meantime.

By the way, here's a related project: https://github.com/dannvix/NflxMultiSubs They only target Netflix and might be a good match for you in the meantime.

from dual-captions.

garfieldnate avatar garfieldnate commented on May 31, 2024

Interesting! Thanks for the response. Since you are planning on getting rid of the google translate stuff, you can just close this issue if you like.
There are probably some language detection packages that you could use out there. Quick google search gives me franc. The amount of data that these systems would require you to bundle might be an issue, but if it's a really key feature then it might be worth it.

from dual-captions.

mikesteele avatar mikesteele commented on May 31, 2024

This is fixed in v1.6.0, with Google Translate support completely removed.

from dual-captions.

mikesteele avatar mikesteele commented on May 31, 2024

I may add that franc library in the future btw, appreciate the link. Personally, bundle size isn't a big deal to me, as the app is installed on machines and not served.

from dual-captions.

garfieldnate avatar garfieldnate commented on May 31, 2024

Thanks a bunch! I'm excited to retry this.

from dual-captions.

mikesteele avatar mikesteele commented on May 31, 2024

Please let me know if the UX is confusing. (I know it'll be) Just hope it's useable.

from dual-captions.

garfieldnate avatar garfieldnate commented on May 31, 2024

Ah yeah, it works for now but it's not the best. It would probably be best to save recently selected languages at the top of the huge language list and set the default to whatever the last selection was. Mine always starts out with English selected and it's a bit of a hunt to find German.

from dual-captions.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.