mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-21 13:53:37 -07:00
parent
41c3a8af01
commit
af91f4ed51
1 changed files with 2 additions and 0 deletions
|
@ -104,6 +104,7 @@ const QString KEY_PROP_CREATION_DATE = u"creation_date"_qs;
|
||||||
const QString KEY_PROP_SAVE_PATH = u"save_path"_qs;
|
const QString KEY_PROP_SAVE_PATH = u"save_path"_qs;
|
||||||
const QString KEY_PROP_DOWNLOAD_PATH = u"download_path"_qs;
|
const QString KEY_PROP_DOWNLOAD_PATH = u"download_path"_qs;
|
||||||
const QString KEY_PROP_COMMENT = u"comment"_qs;
|
const QString KEY_PROP_COMMENT = u"comment"_qs;
|
||||||
|
const QString KEY_PROP_ISPRIVATE = u"is_private"_qs;
|
||||||
|
|
||||||
// File keys
|
// File keys
|
||||||
const QString KEY_FILE_INDEX = u"index"_qs;
|
const QString KEY_FILE_INDEX = u"index"_qs;
|
||||||
|
@ -430,6 +431,7 @@ void TorrentsController::propertiesAction()
|
||||||
dataDict[KEY_PROP_PIECE_SIZE] = torrent->pieceLength();
|
dataDict[KEY_PROP_PIECE_SIZE] = torrent->pieceLength();
|
||||||
dataDict[KEY_PROP_PIECES_HAVE] = torrent->piecesHave();
|
dataDict[KEY_PROP_PIECES_HAVE] = torrent->piecesHave();
|
||||||
dataDict[KEY_PROP_CREATED_BY] = torrent->creator();
|
dataDict[KEY_PROP_CREATED_BY] = torrent->creator();
|
||||||
|
dataDict[KEY_PROP_ISPRIVATE] = torrent->isPrivate();
|
||||||
dataDict[KEY_PROP_ADDITION_DATE] = static_cast<double>(torrent->addedTime().toSecsSinceEpoch());
|
dataDict[KEY_PROP_ADDITION_DATE] = static_cast<double>(torrent->addedTime().toSecsSinceEpoch());
|
||||||
if (torrent->hasMetadata())
|
if (torrent->hasMetadata())
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue