Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Double click on WebUI doesn't open AddDialog #229

Open
LightDestory opened this issue Mar 19, 2023 · 3 comments
Open

Double click on WebUI doesn't open AddDialog #229

LightDestory opened this issue Mar 19, 2023 · 3 comments

Comments

@LightDestory
Copy link

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
Copy link
Member

ngosang commented May 21, 2023

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 =>

def download_torrent(self, download_url):

@luzpaz
Copy link

luzpaz commented Oct 31, 2023

bumping for progress

@LightDestory
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants