Feat: Chinese character converter#893
Conversation
|
Appreciate the PR but hesitant to put this in for these reasons:
|
|
Makes sense to me. Thanks for the feedback.
I'd like this but my current problem would be that it is quite cumbersome to download the subtitle files, for example, with youtube-dl. Maybe there could be some way to download the currently selected subtitle to re-upload a modified version via the websocket? Maybe there could even be a way for the websocket to announce that a new subtitle has been loaded, then any interested listeners could make the expensive call to fetch the subtitles. Is this something you might be keen on including in the
I could try and make it so that the user uploads whatever dictionary they would like to use. I would imagine this would solve the size problem. Anyway, If all else fails I can just keep using my fork :) |
Actually this seems like a really great use case for the websocket server. We could provide a way to query the currently loaded subtitles. Then anybody interested could just poll for changes and transform the subs however they wish. |
|
If we do this i'd prefer to extend the anki plugin that @mwojick wrote though |
Just going to check, do you mean the file or the currently displayed subtitles. Would the web-socket from the client send a message to the server only once when the subtitles are loaded, or once per new subtitle node is displayed (and have the subtitle text updated as the video is playing)?
So we keep a constant store of the current subtitles in the anki plugin, let it be polled by third party apps, and then when the subtitles are updated send them back to the client? |
I was just thinking of providing a way to query the current subtitle file and its contents via an HTTP endpoint. Pushing subtitle events could be cool too but currently the only supported client of the websocket server is asbplayer itself. Not sure how complicated it would be to support other types of clients.
Yeah something like that but unsure of the details atm |
This would probably have been better as a git issue than as a pull request; but I was wondering if you would be ok with/interested in an option to automatically convert Chinese characters between simplified and traditional.
This change seems to increase the size of the extension by >1mb which isn't fantastic...
Anyway let me know what you think. If it's ok with you I will try to make a UI for it.