|
|
@ -206,6 +206,7 @@ TorrentHandle::TorrentHandle(Session *session, const libtorrent::torrent_handle |
|
|
|
if (!data.resumed) { |
|
|
|
if (!data.resumed) { |
|
|
|
if (hasMetadata()) { |
|
|
|
if (hasMetadata()) { |
|
|
|
setFirstLastPiecePriority(data.sequential); |
|
|
|
setFirstLastPiecePriority(data.sequential); |
|
|
|
|
|
|
|
if (m_session->isAppendExtensionEnabled()) |
|
|
|
appendExtensionsToIncompleteFiles(); |
|
|
|
appendExtensionsToIncompleteFiles(); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
@ -1550,6 +1551,7 @@ void TorrentHandle::handleMetadataReceivedAlert(libt::metadata_received_alert *p |
|
|
|
Q_UNUSED(p); |
|
|
|
Q_UNUSED(p); |
|
|
|
qDebug("Metadata received for torrent %s.", qPrintable(name())); |
|
|
|
qDebug("Metadata received for torrent %s.", qPrintable(name())); |
|
|
|
updateStatus(); |
|
|
|
updateStatus(); |
|
|
|
|
|
|
|
if (m_session->isAppendExtensionEnabled()) |
|
|
|
appendExtensionsToIncompleteFiles(); |
|
|
|
appendExtensionsToIncompleteFiles(); |
|
|
|
m_session->handleTorrentMetadataReceived(this); |
|
|
|
m_session->handleTorrentMetadataReceived(this); |
|
|
|
|
|
|
|
|
|
|
|