mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-30 20:28:05 -06:00
BUGFIX: Do not display .!qB file extensions in Web UI
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
- BUGFIX: Fix possible crash when showing torrent content (closes #1002586)
|
||||
- BUGFIX: Remove 100kb limit for torrent file size in Web UI
|
||||
- BUGFIX: Fix ratio limiting bug (closes #835217)
|
||||
- BUGFIX: Do not display .!qB file extensions in Web UI
|
||||
|
||||
* Sun May 20 - Christophe Dumez <chris@qbittorrent.org> - v2.9.9
|
||||
- BUGFIX: More reliable RSS feed parsing (closes #1001777)
|
||||
|
||||
@@ -109,7 +109,10 @@ QList<QVariantMap> EventManager::getPropFilesInfo(QString hash) const {
|
||||
h.file_progress(fp);
|
||||
for(int i=0; i<h.num_files(); ++i) {
|
||||
QVariantMap file;
|
||||
file["name"] = h.filename_at(i);
|
||||
QString fileName = h.filename_at(i);
|
||||
if (fileName.endsWith(".!qB"))
|
||||
fileName.chop(4);
|
||||
file["name"] = fileName;
|
||||
libtorrent::size_type size = h.filesize_at(i);
|
||||
file["size"] = misc::friendlyUnit((double)size);
|
||||
if(size > 0)
|
||||
|
||||
Reference in New Issue
Block a user