m13253 / BiliDan

Play videos on Bilibili.com with MPV and Danmaku2ASS
http://m13253.blogspot.com/2014/06/watch-bilibili-with-biligrab-danmaku2ass.html
Other
513 stars 69 forks source link

Feature request: Freedesktop compliance #38

Closed MingcongBai closed 8 years ago

MingcongBai commented 9 years ago

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)

#!/usr/bin/bilidan 
http://www.bilibili.com/video/av2989364/
http://www.bilibili.com/video/av2995079/

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.

Please, reply with questions and doubts.

m13253 commented 8 years ago

Not many users need this feature. Closing now. You are welcome to send me a pull request if you can implement it. ;-)