mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-15 09:43:07 -07:00
- Fix "Append .!qB extension to incomplete files" feature for torrents added from magnet links
This commit is contained in:
parent
411a1c641d
commit
88f8437c5a
1 changed files with 5 additions and 0 deletions
|
@ -1625,6 +1625,11 @@ void Bittorrent::readAlerts() {
|
||||||
QTorrentHandle h(p->handle);
|
QTorrentHandle h(p->handle);
|
||||||
if(h.is_valid()) {
|
if(h.is_valid()) {
|
||||||
qDebug("Received metadata for %s", h.hash().toLocal8Bit().data());
|
qDebug("Received metadata for %s", h.hash().toLocal8Bit().data());
|
||||||
|
#ifdef LIBTORRENT_0_15
|
||||||
|
// Append .!qB to incomplete files
|
||||||
|
if(appendqBExtension)
|
||||||
|
appendqBextensionToTorrent(h, true);
|
||||||
|
#endif
|
||||||
emit metadataReceived(h);
|
emit metadataReceived(h);
|
||||||
if(h.is_paused()) {
|
if(h.is_paused()) {
|
||||||
// XXX: Unfortunately libtorrent-rasterbar does not send a torrent_paused_alert
|
// XXX: Unfortunately libtorrent-rasterbar does not send a torrent_paused_alert
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue