mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-20 05:13:30 -07:00
Merge pull request #10153 from Piccirello/webui-files-table
Display files hierarchically in Web UI content tab
This commit is contained in:
commit
733da5ffdb
11 changed files with 985 additions and 120 deletions
|
@ -461,7 +461,7 @@ void TorrentsController::filesAction()
|
|||
QString fileName = torrent->filePath(i);
|
||||
if (fileName.endsWith(QB_EXT, Qt::CaseInsensitive))
|
||||
fileName.chop(QB_EXT.size());
|
||||
fileDict[KEY_FILE_NAME] = Utils::Fs::toNativePath(fileName);
|
||||
fileDict[KEY_FILE_NAME] = Utils::Fs::toUniformPath(fileName);
|
||||
|
||||
const BitTorrent::TorrentInfo::PieceRange idx = info.filePieces(i);
|
||||
fileDict[KEY_FILE_PIECE_RANGE] = QJsonArray {idx.first(), idx.last()};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue