Open thany opened 1 year ago
Actually, it appears that it is possible to add http links to torrent files. We don't even need to download it ourselves, transmission-daemon will handle it. Not sure how I missed it before. Although it won't work for automatic opening of Tremotesf by clicking on the link because we would need to associate Tremotesf with whole http protocol which is not a good idea. Still it is possible to implement it for drag & drop as well as manual paste in add torrent dialog (and clipboard).
Oh, it actually works right now when you paste it manually.
@equeim This specific issue is about monitoring the clipboard. Not about any other means to get a torrent into transmission.
What exactly do you mean by monitoring clipboard?
Right now I'm thinking about automatically showing torrent add dialog when user presses Ctrl+V on keyboard while torrent link/file is in clipboard (I don't think this needs toggle in settings).
As well as automatically filling torrent link field when dialog for adding torrent link is opened (this will be opt-in). Dialog itself will have to be opened manually though. I don't think constantly monitoring clipboard and popping up with dialogs is a good idea.
What exactly do you mean by monitoring clipboard?
When a torrent or magnet link appears in the clipboard by copying/cutting it from someplace else, tremotesf automatically "sees" this and automatically picks it up for downloading. It would have to poll the clipboard every second or so.
JDownloader2 has this feature as well. Totally different software, but very similar mechanic.
But maybe now you can understand why I was so particular by stating "With permission from the user of course" in my OP.
With permission from the user of course, monitor the clipboard for any torrent links that appear in there. This would help in situations where links to a torrent cannot be clicked, perhaps they are listed in a plaintext file or something. Or when using a super locked down browser that doesn't allow external programs to be called when clicking a link (some kind of ultra privacy browser, I'm sure they exist).
And when I say torrent link, I am primarily referring to
magnet:
links. But maybe it's also possible to monitor forhttps://
links to torrent files (might be tricky, not sure if this is a good idea in the first place).