airdcpp-web / airdcpp-webclient

Communal peer-to-peer file sharing application for file servers/NAS devices
https://airdcpp-web.github.io
171 stars 31 forks source link

Add support of search links in chats #383

Closed tehnick closed 3 years ago

tehnick commented 3 years ago

Currently search magnet link in AirDC++ WebUI 2.11.0 looks like: Screenshot_20210129_154231+mod1 As you see, such link is not parsed as magnet link and after click on it web browser asks user which application should be used to open link.

For comparing the same magnet links in EiskaltDC++ 2.4.1 look like: Screenshot_20210129_130019+mod-1

Please add support of search magnet links in chats. They are described in magnet URI scheme in details, but on practice such links often don't contain size part and look like:

magnet:?kt=EiskaltDC%2B%2B+2.4.1&dn=EiskaltDC%2B%2B+2.4.1

After click on such link DC client starts search for keywords (from kt=) with search type "Any".

Currently search magnet links are supported at least in EiskaltDC++ and FlylinkDC++. I have not checked GreylinkDC++ and other dead projects. Also displaying of search links in FlylinkDC++ currently has tiny issue: https://github.com/pavel-pimenov/flylinkdc-r6xx/issues/5

Yes, these links are used rarely now, but it would be nice to spread their usage more widely.

maksis commented 3 years ago

Added in version 2.11.1. It will also allow you to create such links for directories (search results/filelists).

You can try the changes at https://webdemo.airdcpp.net

tehnick commented 3 years ago

Thanks!