Comments (7)
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.
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.
This is fixed in v1.6.0, with Google Translate support completely removed.
from dual-captions.
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.
Thanks a bunch! I'm excited to retry this.
from dual-captions.
Please let me know if the UX is confusing. (I know it'll be) Just hope it's useable.
from dual-captions.
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)
- ⚠️ YouTube not working [2/9/20] - New caption schema HOT 4
- issues in fullscreen HOT 6
- Please adjust the subtitle file HOT 3
- Download machine translation subtitle when there is not subtitle on youtube. HOT 2
- Using this two subtitle extension in Macbook heats up the laptop quick
- Extension is not working, second language dropdown is empty HOT 1
- add support at amazon prime HOT 2
- Settings are not saved by DualCaption HOT 1
- UI Lags in Brave HOT 1
- Hotkeys not disclosed anywhere and not customizable HOT 1
- YouTube subtitle formatting options not being used
- On Disney+ it actually doesn't function at all unfortunately HOT 3
- firefox ver pls =3=
- feature-request: customizing the subtitle size HOT 2
- Limit on the number of saved captions HOT 2
- [Feature Request] Coursera support
- [Featurn Request] Saved Live Caption into txt
- It actually works on Firefox! Would you upload it to AMO?
- anyone figure out a way to hide/disable the UI when pausing / fast forwarding / rewinding ?
- Not working in fullscreen mode in Netflix
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dual-captions.