qbittorrent / search-plugins

Search plugins for the search feature
GNU General Public License v2.0
4.26k stars 475 forks source link

Double click on WebUI doesn't open AddDialog #229

Open LightDestory opened 1 year ago

LightDestory commented 1 year ago

Hi, I am a unofficial plugin maintainer.

I follow the guidelines but almost all my plugins are not usable in the WebUI:

I have noticied that WebUI uses directly the "link" record when "Right Click -> Download" so I managed to workaround the issue by moving the download retrieving logic during the parsing.

Now the issue is that when I double click on a torrent entry nothing happens: I am forced to "Right Click -> Download" everytime.

Official search plugin instead work flawless with double click... Any idea?

You can check my implementations here: Repository

ngosang commented 1 year ago

You have to implement something like this:

from helpers import download_file

    def download_torrent(self, download_url):
        if download_url.startswith('magnet:?'):
            print(download_url + " " + download_url)
        else:
            print(download_file(download_url))

Related => https://github.com/qbittorrent/search-plugins/blob/4d846133939ed930e1beb97e8ff0905a2be6db55/nova3/engines/jackett.py#L66

luzpaz commented 1 year ago

bumping for progress

LightDestory commented 11 months ago

@ngosang Still nothing.

I have found that the "double click" works only when the search is still running. When the search ends, the double click will not work anymore.