I just noticed that DC resumed a file with different hash. (version 0.402)
The files had identical name and exact size but the hash was totally different...
I understand that the hash can be different with a minor change, but could this be because the id tag (it was a mp3 file) from the song was different ?
So in other words:
Do mp3 files get a different hash if ONLY the ID3 tag is different ?
Cause then I understand why in this case, it was no problem for the file to resume with a different hash, even though it was not ment to be like this.
file resumes with different hash !
Moderator: Moderators
-
- DC++ Contributor
- Posts: 3212
- Joined: 2003-01-07 21:46
- Location: .pa.us
-
- DC++ Contributor
- Posts: 3212
- Joined: 2003-01-07 21:46
- Location: .pa.us
Oy, that's interesting, void QueueManager::onAction(SearchManagerListener::Types type, SearchResult* sr) seems to make no attempt to check for incompatible TTHes when matching by filename. I wonder if something like this would be better?
That should be fairly safe - if you start a download without a root TTH, autosearch shouldn't pick one up unless you match an XML list with the same filename. The QueueManager::add() will add a root to a non-existent one, but I suspect that can only be triggered by a manual add in the search frame.
Hmm, time to move this, I think.
Code: Select all
if(sr->getTTH() && qi->getTTH()) {
if (*sr->getTTH() == *qi->getTTH()) {
found = true;
exact = true;
}
}
Hmm, time to move this, I think.