DIY solution for a persisting problem (double download locations)


#1

The problem:

For over a year now, I have been confronted with some torrents being written to two locations at once, thus wasting my storage space. Every time I deleted the corresponding files and folders in the unwanted location, the torrent started to download again (even though a completed version was already present in my default download folder).

The solution:

I took a look into how, and where it is defined where torrents are being stored, and solved the problem to the point that I can delete files at unwanted locations without further consequences. On Windows, this meant:

  1. Start Tribler, and click on the download that is affected by the aforementioned problem

  2. Under details, look up its infohash

  3. Press the windows key

  4. Type %APPDATA% folowed by enter

  5. open .Tribler\dlcheckpoints folder

  6. Find the .state file that begins with the infohash of the problematic torrent

  7. Open this file in a text editor

  8. All my .state files belonging to problematic torrents contained multiple instances of lines beginning with: "saveas = ", whereas normal torrent .state files contain only one such line. Delete those lines, pointing to download locations differing from the one you prefer.

  9. Save the file

  10. Restart Tribler

  11. Delete the files in the unwanted download location

If the above doesn’t help others with the same problem, then maybe it may provide the developers with clues as to where the bug arose.