Just as a thought that I mentioned to @m13253 over a instant messaging chat. I believe it is reasonable for BiliDan to consider a file type for a playlist/link-list, and with that type of file, BiliDan can use some Freedesktop technique to implement "double-click and play" support of certain Bilibili videos.
For example. A file like the following... (Shebang shows a distribution packaged scenario)
As simple as a list of Bilibili links, or it can even be expanded with certain parameters (picture quality, play delay, etc. Which are already implemented by mpv itself). Then a .desktop file containing information and invoke details for BiliDan can be provided with the program itself, showing...
Exec=bilidan %U
And match it with a proper MIME type (even a new one to be introduced), then BiliDan can take care of reading these "list" files when double clicked in a file browser, with no need for command line operations.
Just as a thought that I mentioned to @m13253 over a instant messaging chat. I believe it is reasonable for BiliDan to consider a file type for a playlist/link-list, and with that type of file, BiliDan can use some Freedesktop technique to implement "double-click and play" support of certain Bilibili videos.
For example. A file like the following... (Shebang shows a distribution packaged scenario)
As simple as a list of Bilibili links, or it can even be expanded with certain parameters (picture quality, play delay, etc. Which are already implemented by mpv itself). Then a .desktop file containing information and invoke details for BiliDan can be provided with the program itself, showing...
And match it with a proper MIME type (even a new one to be introduced), then BiliDan can take care of reading these "list" files when double clicked in a file browser, with no need for command line operations.
Please, reply with questions and doubts.