qbittorrent / qBittorrent

qBittorrent BitTorrent client
https://www.qbittorrent.org
Other
25.97k stars 3.82k forks source link

Load torrent metadata by magnet, hash... in qBittorrent-nox #20966

Open NikcN22 opened 3 weeks ago

NikcN22 commented 3 weeks ago

Suggestion

Add an API that will take magnet, hash and so on as a parameter and return torrent metadata.

Use case

This will allow to create a window for selecting the priority of the torrent content at the stage of adding a torrent using a magnet-link, hash and so on

Extra info/examples/attachments

No response

Piccirello commented 1 week ago

I'm going to explore implementing this. Once this API exists, other work will still be needed to allow for the modification of content priority when adding a torrent.

NikcN22 commented 1 week ago

I'm going to explore implementing this. Once this API exists, other work will still be needed to allow for the modification of content priority when adding a torrent.

Thank you very much! I understand what you are talking about. Of course, it would be ideal if the .../torrent/add method had an option to set file priority. However, using the available APIs and a couple of tools, you can set the priority of files when adding a new torrent.

sdugoten commented 1 week ago

would torrent meta also include file contents inside the magnet link and allow you to choose which files to download?

Piccirello commented 1 week ago

The metadata will include file contents. Support for selecting which files to download would need to be added to the add torrent API and will not be part of this work.

sdugoten commented 1 week ago

The metadata will include file contents. Support for selecting which files to download would need to be added to the add torrent API and will not be part of this work.

I was about to migrate from Deluge to qBittorrent-nox, and the only thing keep me from moving to qBittorent-nox is the lack of magnet preview content.............

Most of the Anime BT site only provide magnet link, and a lot of those magnet link might include way more files than you want to download. Having a way to preview the magnet link content and choose what to download just like the qBittorent Windows client would be prefect.

Piccirello commented 1 week ago

Totally understand the use case. Just FYI, you're able to do accomplish today but with more steps. When adding the torrent you can tell qBittorrent to pause downloading once the metadata has been received. That way you can select the content you want before any files have been downloaded. You can also set this as the default option in qBittorrent's preferences.

sdugoten commented 1 week ago

Totally understand the use case. Just FYI, you're able to do accomplish today but with more steps. When adding the torrent you can tell qBittorrent to pause downloading once the metadata has been received. That way you can select the content you want before any files have been downloaded. You can also set this as the default option in qBittorrent's preferences.

Wonder if there is any bounty I can put so that some free developer can work on something like this for a magnet preview content before download on WEB UI? Yes, I really want to move away from deluge...so bad that I am willing to put a bounty to get this done.

The following is the magnet preview window from a BT client called Xunlei Thunder. The preview window even have sorting and file extension type filtering based on what file type are in the content. It also comes with a working directory hierarchy which you can just click on a check box to select all files within that folder. Partial selection for that folder will display a "-" sign instead of a check mark to indicate only partial files are selected.

I have yet seen another BT client with a magnet/torrent file content preview window as user friendly as this one. I think the only missing thing in the window below is the category/tag which allow you to pick whatever category/tag you want.

image

NikcN22 commented 1 week ago

I have already implemented this functionality for torrent files in qBittorrent remote GUI for macOS. For now, this functionality is in the alpha testing stage, but some things can be tested now.

Sreenshot
sdugoten commented 1 week ago

I have already implemented this functionality for torrent files in qBittorrent remote GUI for macOS. For now, this functionality is in the alpha testing stage, but some things can be tested now. Sreenshot

If you can give me the version that comes with that option, I am happy to test it. Too bad it's only Mac only. I use both PC and Mac.