-
Hello. When I download a torrent, I download those files that I specified "not to download". Trying to solve this problem, I find records from 6-10 years ago with the exact same problem. I understand the problem is still not solved. Can you tell me if there is any way to make a script that removes unnecessary files? I am using the console version on Ubuntu 20 |
Beta Was this translation helpful? Give feedback.
Replies: 14 comments 2 replies
-
If you don't mind have patience, this type of issues are about to be addressed as the project goes through a major code refactoring from C to C++; therefore, such bugs it would be easier to get resolved by volunteers who are willing to contribute. I'm testing Transmission locally on my system as is my torrent client of choice; since the refactoring announcement on Hacker News, I came straight to help in any way possible. So, have some faith and such peculiarities are going to get resolved sooner or later. Cheers 👍 |
Beta Was this translation helpful? Give feedback.
-
Let's discuss again: are we talking about problems from 2007 that will be solved "soon"? There is a bug that for some reason has not been fixed for 14 years. Don't you think that's strange? |
Beta Was this translation helpful? Give feedback.
-
I don't know whether I did not understand you correctly or not, but I have experimented a bit. When you try to download a torrent or a manget link, it does not know in advance the number of files a link contains; therefore, it first needs to find the closest peers, connect with them, fetch the whole set of files, from 1 to any number of files it may contain, and then start downloading them. After this procedure and right after the initialization of downloading the files, it lets you uncheck the files you don't want; thus the retaining on unnecessary files. It has to respect the file structure you are supposed to download as a whole; it does not know your intentions nor that you want to download a single file out of, let's say 100 it may contain. Update: I have tried the same procedure with |
Beta Was this translation helpful? Give feedback.
-
I add a torrent file and immediately stop it Then I browse through the list of files with the command For example, I get a list of 10 files. I don't want files 4 through 9 and I run the command Then I start the download The torrent starts and in the download folder I see files 4 and 5 in addition to files 0-3 for some reason. I do not argue about the block system and that the files can not share and download separately, but why is it impossible to automatically delete these files after the end of the download? We know in advance which ones we need and which ones we don't. |
Beta Was this translation helpful? Give feedback.
-
Transmission allocates the full size file to disk even though only a part of a piece of it would need to be downloaded, e.g. a 10GB file will take the whole 10GB of diskspace even though only a part of a 100kB piece from the beginning of the file would need to be downloaded. So in effect Transmission wastes a whole 10GB of disk space just for zeroes for this particular file. Of course this adds up the more files only partially downloaded. This could be fixed with sparse files ( https://docs.microsoft.com/en-us/windows/win32/fileio/sparse-files ) or some other solution. |
Beta Was this translation helpful? Give feedback.
-
What does this have to do with the allocation and the files that should have self-destructed? Let's look at an example. I add a torrent with the movie "Breaking Bad". I can see a list of files:
I can also get the total size of all the files:
I only want to download season 2. That is files 7-19. Therefore I need to exclude files numbered 0-6 and 20-61. Let's do this: Start the download After the download is complete, look at
Let's check the size of the folder
Again, what kind of space allocation are we talking about? You are mistaken. The size of my drive is 42GB and the size of the entire series is 50GB. I wouldn't be able to download 13 episodes because I wouldn't have enough space. But that has nothing to do with it. I care about 2 files. Why the file from season 1 and the file from season 2 were not automatically deleted is not clear to me. I repeat: this problem has existed since 2007! Why can't you fix this mistake? I'm not a programmer, I'm a designer. But if I could, I would have fixed it right away, instead of waiting 14 years. |
Beta Was this translation helpful? Give feedback.
-
This is not about allocation or transmission - this is how torrents work. Files are combined in one stream, divided into chunks and you download those chunks. The chunk with the first file of the season two didn't start right away - it started somewhere in the last file of the season 1. That's why you have that part. The same applies to the last file and part of the file of the next season. The reason why they are kept on your disk - to allow you to share the whole chunks. If part of the previous season is deleted, you cannot share the beginning of the fist episode of the season two. Transmission doesn't want you to turn into a leecher and prevent you from sharing that first chunk that you downloaded. This is not a bug. This is by design |
Beta Was this translation helpful? Give feedback.
-
Technically they are called "pieces" and what I wrote is correct and is an issue with Transmission. Transmission allocates the full sized files, just to download a part of a piece, wasting disk space. That is a real bug, an old one, as can be seen from the breadcrumbs in trac, even with patches submitted to fix the issue but not accepted.
|
Beta Was this translation helpful? Give feedback.
-
I'd say transmission does what its configuration says. What's your set value for:
in JSON formatted configuration file? |
Beta Was this translation helpful? Give feedback.
-
I'm not quite sure what this parameter does? Can you please explain it again? |
Beta Was this translation helpful? Give feedback.
-
I think we went off the topic of this issue. Which is the presence of unasked files. I hope I explained that this is by design and not a bug. What you're asking about is the used disk space for such files. I've got '1' as well and mine .part files (the ones I didn't ask for) are small and don't take the whole size on disk. There's a difference between a size and a size on disc. In case of sparse files the former might be larger than the latter. |
Beta Was this translation helpful? Give feedback.
-
About the question, it made a little more sense to me. But there is one point. It would be good - to add the ability not only to start and stop the distribution and download, but to have the ability to finish downloading the file. With this command |
Beta Was this translation helpful? Give feedback.
-
I'd vote against such option. That prevents you from sharing all downloaded pieces. I have such torrents for years in the queue. Cannot complete multi-gigabyte file because sources deleted .part file for not important assisting text file. So while they have the actual file, they cannot share it and let others get it. |
Beta Was this translation helpful? Give feedback.
-
It is the default value, which is 1. That does not mean the correct behaviour is writing empty 10GB files to disk for a 50kB part of a single piece. That is probably one reason this issue keeps cropping up, the trac issue is complaining about the same thing and is 14 years old with patches submitted to fix it. NTFS supports sparse files. I linked to NTFS documentation about them. |
Beta Was this translation helpful? Give feedback.
This is not about allocation or transmission - this is how torrents work. Files are combined in one stream, divided into chunks and you download those chunks. The chunk with the first file of the season two didn't start right away - it started somewhere in the last file of the season 1. That's why you have that part. The same applies to the last file and part of the file of the next season.
The reason why they are kept on your disk - to allow you to share the whole chunks. If part of the previous season is deleted, you cannot share the beginning of the fist episode of the season two. Transmission doesn't want you to turn into a leecher and prevent you from sharing that first chunk that yo…