mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-15 01:33:07 -07:00
Duplicate torrent trackers and url seeds are added to existing torrent even if it was added through folder scanning
This commit is contained in:
parent
66a7082b5c
commit
f833f26212
1 changed files with 54 additions and 55 deletions
|
@ -972,7 +972,6 @@ QTorrentHandle Bittorrent::addTorrent(QString path, bool fromScanDir, QString fr
|
||||||
if(s->find_torrent(t->info_hash()).is_valid()) {
|
if(s->find_torrent(t->info_hash()).is_valid()) {
|
||||||
qDebug("/!\\ Torrent is already in download list");
|
qDebug("/!\\ Torrent is already in download list");
|
||||||
// Update info Bar
|
// Update info Bar
|
||||||
if(!fromScanDir) {
|
|
||||||
if(!from_url.isNull()) {
|
if(!from_url.isNull()) {
|
||||||
// If download from url, remove temp file
|
// If download from url, remove temp file
|
||||||
QFile::remove(file);
|
QFile::remove(file);
|
||||||
|
@ -1021,7 +1020,7 @@ QTorrentHandle Bittorrent::addTorrent(QString path, bool fromScanDir, QString fr
|
||||||
addConsoleMessage(tr("Note: new URL seeds were added to the existing torrent."));
|
addConsoleMessage(tr("Note: new URL seeds were added to the existing torrent."));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}else{
|
if(fromScanDir) {
|
||||||
// Delete torrent from scan dir
|
// Delete torrent from scan dir
|
||||||
QFile::remove(file);
|
QFile::remove(file);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue