-
Notifications
You must be signed in to change notification settings - Fork 4
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
Add script-message to allow matching of danmaku by specifying a name #7
Comments
Do you mean manually specifying an episode for videos that match to multiple episodes? The return value of the dandanplay API for episode matching contains But how are you going to select the correct episode based on |
This is one of the use cases.
I originally envisioned that It could add danmaku matching support for web streaming video (emby/webdav) by way of script-message, not sure if hash matching would be useful in this scenario. It's also good to draw an OSD UI for interaction on top of this, which can be provided by the danmaku scripts or implemented by third-party scripts on their own with data from user-data. |
A simple use is for a script to input something like On this basis we can just input |
Is there any way to get the MD5 sum of the first 16MB of a web streaming video without sending extra requests? |
There seems to be no reliable way to read the required data from the mpv's cache. |
If you plan to implement the OSD UI or the program for selection yourself, I can implement something like |
I think mp.input is handy for input, but drawing the OSD UI using mp.input.select is pretty rudimentary. I prefer to draw the OSD UI base on the scroll-list script. If you want to provide OSD UI support in your danmaku script then I think using mp.input.select would be more appropriate. |
The return value of dandanplay API is quite simple. The data in [
{
"episodeId": 63270001,
"animeTitle": "化物语",
"episodeTitle": "第1话 黑仪·蟹 其一",
"typeDescription": "TV动画"
}
]
I personally don't encounter this too often.
Nor do I currently have a need for it. I don't plan to implement a third-party script myself in a new repository, and I don't really want to include a Lua script in this repository (the first version of this plugin consists of a Lua script and a C plugin, which I don't think is very elegant). So if you don't plan to implement the OSD UI yourself, let's wait for mp.input.select to be released. |
I have only encountered this situation when watching some animated movies.
I originally planned to draw the relevant OSD UI in the load-danmaku script, but I realized that the script entered the content and then obtained the This may not be very good. It would be much better to have a native implementation based on mp.input.select to provide in danmaku script. |
No way to call Lua scripts directly from the C plugin, need to communicate with console.lua through Doing anything in the C plugin is verbose because the libmpv API is quite low level. I wouldn't choose the C plugin if I could send HTTP requests in Lua. |
There are always multiple matches when not using hash values. Although the results are sorted by possibility, the one with the highest possibility is not always correct. |
For cases where multiple results are returned we can wait for For emby only it returns anime names and episodes in Chinese, which performs much better in terms of matching than Romanization-based name matching. The episodeTitle of dandanplay exists in both Chinese and Japanese, but after testing, for example, the contents of |
I've never used Emby. Is the |
My original idea was to add danmaku support for the project of tsukimi, but I noticed the refactoring the developer mentioned there. This makes this implementation unnecessary. |
It can be
script-message danmaku-match <name>
, This will allow it to be used via commands or called by other scripts , adding extensibility.The text was updated successfully, but these errors were encountered: