mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-07-14 17:23:07 -07:00
Use libtorrent::torrent_status::added_time (Closes #3764).
This commit is contained in:
parent
1ba1f90058
commit
b63a68c9db
4 changed files with 1 additions and 7 deletions
|
@ -2369,7 +2369,6 @@ bool loadTorrentResumeData(const QByteArray &data, AddTorrentData &out, MagnetUr
|
|||
libt::lazy_bdecode(data.constData(), data.constData() + data.size(), fast, ec);
|
||||
if ((fast.type() != libt::lazy_entry::dict_t) && !ec) return false;
|
||||
|
||||
out.addedTime = QDateTime::fromTime_t(fast.dict_find_int_value("qBt-addedTime"));
|
||||
out.savePath = Utils::Fs::fromNativePath(Utils::String::fromStdString(fast.dict_find_string_value("qBt-savePath")));
|
||||
out.ratioLimit = Utils::String::fromStdString(fast.dict_find_string_value("qBt-ratioLimit")).toDouble();
|
||||
out.label = Utils::String::fromStdString(fast.dict_find_string_value("qBt-label"));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue