This forum has been archived. All content is frozen. Please use KDE Discuss instead.

two into one

Tags: None
(comma "," separated)
chitowner2
Registered Member
Posts
13
Karma
0
OS

two into one

Tue Aug 03, 2010 1:05 am
Not sure what to title this post so I called it what it is. :lol:

Normally when one tries to open a new torrent that duplicates one already running, ktorrent flags the action. I currently have a scenario where two torrents are downloading into the same file. I have verified that this is indeed the case. It probably happened because both torrents have the same identical name but different trackers. It may be relevant that I started both torrents within a few seconds, but even so I've never seen this happen before.

I'm not sure if the download will be corrupted by this or not. Hopefully ktorrent will just merge the sources but it's too early to tell if that will happen. If not I can just repeat the download with one source instead of two so it's no big deal.

I don't necessarily need "help" for this issue, but hopefully the dev team will take a look at it. :P

CT
George
Moderator
Posts
5421
Karma
1

Re: two into one

Tue Aug 03, 2010 3:23 pm
It is on my todo list for 4.1 to have some way of preventing these situations.
chitowner2
Registered Member
Posts
13
Karma
0
OS

Re: two into one

Wed Aug 04, 2010 8:32 pm
UPDATE

One of the torrents finished while the other is still at ~20%. The downloaded file seems to be fine but I would expect that if the two downloads were somehow merged, both would finish at the same time, so obviously tracking data remains segregated.

This represents an interesting scenario. Could ktorrent be modified to optionally merge torrents with different trackers if the source files can be confirmed as identical?

CT
George
Moderator
Posts
5421
Karma
1

Re: two into one

Thu Aug 05, 2010 6:04 pm
chitowner2009 wrote:UPDATE

One of the torrents finished while the other is still at ~20%. The downloaded file seems to be fine but I would expect that if the two downloads were somehow merged, both would finish at the same time, so obviously tracking data remains segregated.


I would run a data scan on the second torrent.

This represents an interesting scenario. Could ktorrent be modified to optionally merge torrents with different trackers if the source files can be confirmed as identical?


If the torrent is the same the tracker lists are merged. Each torrent has an info hash, which is used to uniquely identify it. This info hash is a hash of the info section of the torrent file. This is used to determine if two torrents are equal. The trackers are not part of the info section. What is part of this info section:

- the chunk size
- the hash of each of chunk
- the list of files
- the name
- the private field

In your case all the files are the same, but not the info hashes, so that means either the chunk size, the private field or the name is different.
chitowner2
Registered Member
Posts
13
Karma
0
OS

Re: two into one

Fri Aug 06, 2010 6:20 pm
The info hash differences are reasonable. I did not know the basis for them before so it's an interesting detail to know. That just makes it all the more strange that the two torrents downloaded into the same files.

I tried various things to discriminate, looking for some way of finding a way they were different and the only thing that turned up was a different set of trackers for each torrent. I had no problems with the resulting download, so once it was done and seeded for a while, I closed the torrents.

CT
phxrisin
Registered Member
Posts
5
Karma
0

Re: two into one

Thu Oct 21, 2010 8:32 am
George wrote:Each torrent has an info hash, which is used to uniquely identify it.


Where is this information stored in the GUI? Pasting the file hash info into google allows for finding more trackers.. I'd be surprised if such a useful feature was overlooked in an otherwise user-friendly program.
George
Moderator
Posts
5421
Karma
1

Re: two into one

Thu Oct 21, 2010 4:33 pm
phxrisin wrote:
George wrote:Each torrent has an info hash, which is used to uniquely identify it.


Where is this information stored in the GUI? Pasting the file hash info into google allows for finding more trackers.. I'd be surprised if such a useful feature was overlooked in an otherwise user-friendly program.


Nobody ever asked for it, so it didn't got added.
phxrisin
Registered Member
Posts
5
Karma
0

Re: two into one

Thu Oct 21, 2010 4:59 pm
George wrote:
phxrisin wrote:
George wrote:Each torrent has an info hash, which is used to uniquely identify it.


Where is this information stored in the GUI? Pasting the file hash info into google allows for finding more trackers.. I'd be surprised if such a useful feature was overlooked in an otherwise user-friendly program.


Nobody ever asked for it, so it didn't got added.


I see.. would it be an easy thing to implement? It's the one thing holding me back from being completely in love with KTorrent.
By the way, if anyone else is having this problem, I found this website to be very useful.
George
Moderator
Posts
5421
Karma
1

Re: two into one

Thu Oct 21, 2010 5:42 pm
Not really difficult, the question only is where to put it.
phxrisin
Registered Member
Posts
5
Karma
0

Re: two into one

Fri Oct 22, 2010 12:17 am
The first place I looked was the Status tab, but maybe the Tracker tab would be better. Or perhaps the right click menu in the Torrents panel ("Copy Torrent Hash" would look nice above/below "Copy Torrent URL")
George
Moderator
Posts
5421
Karma
1

Re: two into one

Fri Oct 22, 2010 3:54 pm
Don't think the right click menu is the right place. Maybe it's time to add a properties dialog.
phxrisin
Registered Member
Posts
5
Karma
0

Re: two into one

Sat Oct 23, 2010 7:07 am
You've got my vote! :D

Something else I noticed is the dialog box that opens when adding a tracker that's already on the list.. It wouldn't be as big a concern were it just a single dialog box, but KTorrent launches one for EACH duplicate tracker entered! (The clicking OK part isn't that bad actually, it's the sound that plays each time one opens :shock: )

Granted, some users might find it an important feature to be notified of each tracker that is a duplicate, but may I propose an option to turn this feature on and off?
George
Moderator
Posts
5421
Karma
1

Re: two into one

Wed Oct 27, 2010 4:00 pm
phxrisin wrote:You've got my vote! :D

Something else I noticed is the dialog box that opens when adding a tracker that's already on the list.. It wouldn't be as big a concern were it just a single dialog box, but KTorrent launches one for EACH duplicate tracker entered! (The clicking OK part isn't that bad actually, it's the sound that plays each time one opens :shock: )


Indeed will fix that.

Granted, some users might find it an important feature to be notified of each tracker that is a duplicate, but may I propose an option to turn this feature on and off?


I'm just gonna show a list of all the dupes.


Bookmarks



Who is online

Registered users: Bing [Bot], Google [Bot], Sogou [Bot]