qbittorrent / qBittorrent

qBittorrent BitTorrent client
https://www.qbittorrent.org
Other
27.05k stars 3.89k forks source link

Add low priority status for files/folders [PATCH] #19042

Open axet opened 1 year ago

axet commented 1 year ago

Suggestion

Add low priority for files / folder download. In additional to: Normal, High, Maximum.

Use case

Sometimes you want to download full torrent but left non important big files at the last (like video files). But since here is default Normal priority for all files and you can't lower selected folder. It can be done in two click - set High to all, then Normal to the low wanted content.

Extra info/examples/attachments

No response

absolutep commented 1 year ago

Wouldn't the queuing option do the same?

axet commented 1 year ago

Removing from download queue isn't same as setting low priority. If that what you means.

luzpaz commented 1 year ago

Do you mind re-wording the feature request title. Maybe 'Add low priority status for files/folders to remove them from download queue' or something as a elaborate?

axet commented 1 year ago

PATCH

diff --git a/src/gui/torrentcontentmodelitem.h b/src/gui/torrentcontentmodelitem.h
index 27a33a4..63fedcd 100644
--- a/src/gui/torrentcontentmodelitem.h
+++ b/src/gui/torrentcontentmodelitem.h
@@ -91,7 +91,7 @@ protected:
     QString m_name;
     qulonglong m_size = 0;
     qulonglong m_remaining = 0;
-    BitTorrent::DownloadPriority m_priority = BitTorrent::DownloadPriority::Normal;
+    BitTorrent::DownloadPriority m_priority = BitTorrent::DownloadPriority::High;
     qreal m_progress = 0;
     qreal m_availability = -1;
 };