qBittorrent icon indicating copy to clipboard operation
qBittorrent copied to clipboard

add/append torrent name to save path

Open Snurre86 opened this issue 9 years ago • 19 comments

Want a checkbox in with "add/append torrent name to save path" in "options\downloads\Hard Disk" and in the "Display torrent content and some options" dialog box.

Might be an issue with: -Character path length limits? -Combining "append the label of the torrent to the save path" and "add/append torrent name to save path"

add torrent dialog - save options torrent name to save path - options

Also see: #4417


Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.

Snurre86 avatar Dec 18 '15 07:12 Snurre86

So you want to add yet another folder that contains the folder that is automatically created containing the contents of the torrent? Or you're downloading crappy torrents who just dump all their files in save path (assuming they exist) or i don't understand what you're asking?

thalieht avatar Dec 18 '15 11:12 thalieht

Yes if I download torrents with 1 file in it, it will just dump it in the downloads folder with stupid names like video.avi etc.

Snurre86 avatar Dec 18 '15 12:12 Snurre86

So you want to add yet another folder that contains the folder that is automatically created containing the contents of the torrent? Or you're downloading crappy torrents who just dump all their files in save path (assuming they exist) or i don't understand what you're asking?

Yes if I download torrents with 1 file in it, it will just dump it in the downloads folder with stupid names like video.avi etc.

So that option you suggested should only apply to single-file torrents. Some thing like: "Create folder for single-file torrent"

Chocobo1 avatar Dec 18 '15 14:12 Chocobo1

I don't really have an overview of what torrents that has this issue yet, but I assume that single file torrents are not the only torrents with this issue. For now I would say that I would make the option available to all torrents added with the "add torrent dialog" and later to all of them when I know more.

Snurre86 avatar Dec 18 '15 15:12 Snurre86

You might be right that qbt already do this with torrents with 2 or more files not sure however.

Snurre86 avatar Dec 18 '15 16:12 Snurre86

Yes, multi-file torrents already get a directory (by design). So this would be for single file torrents only.

EraYaN avatar Dec 18 '15 19:12 EraYaN

It is not 100% accurate as the torrent name do vary from the directory but I think that is not to big a deal. For now just go with the single file torrents and we can see if the issue still prevails and make changes from that if needed.

Snurre86 avatar Dec 18 '15 20:12 Snurre86

Then again if we add it for torrents with 2 or more files and remove the auto directory it will be possible to get all the files directly in the download folder if wanted. related to #588 #4417

Snurre86 avatar Dec 18 '15 21:12 Snurre86

There is a fairly well known problem with this, which causes much confusion when trying to reload the torrent to a client at some future date. The additional top level folder is NOT part of the metadata, so unless the user knows or remembers to remove the additional folder a re-check will fail, as will using "Import Existing Torrent" in qbittorrent.

This has been a continual problem for people migrating to other clients from uTorrent, (see this thread for example), which DOES add this additional folder.

chrishirst avatar Dec 19 '15 13:12 chrishirst

To fix that it, might be helpful to have qbitorrent scan folders to find the files themselves, first just filename based and then maybe even file signature based. Recheck also fails when the files are in their "finished" folder, to have the recheck work you need to move the files to the incomplete folder, just a huge mess.

EraYaN avatar Dec 19 '15 13:12 EraYaN

Yes, multi-file torrents already get a directory (by design).

Not actually "by design" if you are assuming it is the receiving peer that adds the folder, the sub folder IS how 'multi-file torrents' are created, so the 'sub folder' IS actually part of the payload.

chrishirst avatar Dec 19 '15 13:12 chrishirst

Yes it's in the metadata right? (So by design of the torrent file structure then I guess, or because of the limitations that are)

The torrent creator decides that folder name, right?

EraYaN avatar Dec 19 '15 13:12 EraYaN

"might be helpful to have qbitorrent scan folders to find the files themselves, first just filename based and then maybe even file signature based."

Then "also delete files on the hard disk" in delete conformation is going to be really unsafe. It could potentially delete all copies of those file on the whole system.

Snurre86 avatar Dec 19 '15 22:12 Snurre86

It could just check if the file was in use by any other torrent. But we are really derailing the thread now ;)

EraYaN avatar Dec 20 '15 11:12 EraYaN

What happened here? I wouldl ike to see that function too. It´s somethink like a batch can do, even after the torrent is finished. But I assume that this needs a recheck or something then? 123.avi will be copied to \123\123.avi that would help me a lot!

Drnice1983 avatar Mar 11 '16 16:03 Drnice1983

If the torrent name is 123 the folder will be 123 even if the file has the same name, but in my opinion this only makes sense when the torrent name is "Sintel (2010)" and the file name is "video file.avi". This will result in a folder named "Sintel (2010) with a file named "video file.avi" in it instead of just a file by the name of "video file.avi" in the download folder.

Snurre86 avatar Mar 13 '16 01:03 Snurre86

quote: If the torrent name is 123 the folder will be 123 even if the file has the same name /quote

yes thats exactly what I need.

Drnice1983 avatar Mar 13 '16 11:03 Drnice1983

Single file torrents are named differently than Torrent Name and metadata fetch fails to find a match. Please just add option to append torrent name when moving files or give us an example how we can do it by external command or script.

We are not stupid nor we download crappy torrents, Rutorrent has this option for over 10 years and I've seen people all over internet asking for this but you act like we are morons.

abegreen avatar Jun 01 '20 03:06 abegreen

yeap. just ran into this. swapped from manual to categories and when all was said and done, found a bunch of stuff missing files. looked to be all cross seeded stuff which i begrudgingly removed to start with a clean slate at least.

there was stuff left. after looking into it. torrents with the same name (a zip) but different filesize as different files on the inside.

klepp0906 avatar Dec 06 '22 12:12 klepp0906