search-plugins icon indicating copy to clipboard operation
search-plugins copied to clipboard

Double click on WebUI doesn't open AddDialog

Open LightDestory opened this issue 2 years ago • 3 comments

Hi, I am a unofficial plugin maintainer.

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

  • The WebUI implementation seems to ignore the download_torrent implementation, I opened a issue on qbit repo but still no news about it: https://github.com/qbittorrent/qBittorrent/issues/18334

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

LightDestory avatar Mar 19 '23 15:03 LightDestory

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

ngosang avatar May 21 '23 11:05 ngosang

bumping for progress

luzpaz avatar Oct 31 '23 10:10 luzpaz

@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.

LightDestory avatar Nov 23 '23 01:11 LightDestory