mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-19 21:03:30 -07:00
Add some more debug output
This commit is contained in:
parent
1036990499
commit
c7043d5c39
1 changed files with 4 additions and 0 deletions
|
@ -2390,15 +2390,19 @@ void QBtSession::readAlerts() {
|
||||||
// Truncate root folder
|
// Truncate root folder
|
||||||
const QString root_folder = misc::truncateRootFolder(p->handle);
|
const QString root_folder = misc::truncateRootFolder(p->handle);
|
||||||
TorrentPersistentData::setRootFolder(h.hash(), root_folder);
|
TorrentPersistentData::setRootFolder(h.hash(), root_folder);
|
||||||
|
qDebug() << "magnet root folder is:" << root_folder;
|
||||||
|
|
||||||
// Move to a subfolder corresponding to the torrent root folder if necessary
|
// Move to a subfolder corresponding to the torrent root folder if necessary
|
||||||
if(!root_folder.isEmpty()) {
|
if(!root_folder.isEmpty()) {
|
||||||
if(!h.is_seed() && !defaultTempPath.isEmpty()) {
|
if(!h.is_seed() && !defaultTempPath.isEmpty()) {
|
||||||
|
qDebug("Incomplete torrent in temporary folder case");
|
||||||
QString torrent_tmp_path = defaultTempPath.replace("\\", "/");
|
QString torrent_tmp_path = defaultTempPath.replace("\\", "/");
|
||||||
if(!torrent_tmp_path.endsWith("/")) torrent_tmp_path += "/";
|
if(!torrent_tmp_path.endsWith("/")) torrent_tmp_path += "/";
|
||||||
torrent_tmp_path += root_folder;
|
torrent_tmp_path += root_folder;
|
||||||
|
qDebug() << "Moving torrent to" << torrent_tmp_path;
|
||||||
h.move_storage(torrent_tmp_path);
|
h.move_storage(torrent_tmp_path);
|
||||||
} else {
|
} else {
|
||||||
|
qDebug() << "Incomplete torrent in destination folder case";
|
||||||
QString save_path = h.save_path();
|
QString save_path = h.save_path();
|
||||||
h.move_storage(QDir(save_path).absoluteFilePath(root_folder));
|
h.move_storage(QDir(save_path).absoluteFilePath(root_folder));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue