mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-21 05:43:32 -07:00
BUGFIX: Do not display .!qB file extensions in Web UI
This commit is contained in:
parent
a0ada5c3ba
commit
bf685773e6
2 changed files with 5 additions and 1 deletions
|
@ -2,6 +2,7 @@
|
||||||
- BUGFIX: Fix possible crash when showing torrent content (closes #1002586)
|
- BUGFIX: Fix possible crash when showing torrent content (closes #1002586)
|
||||||
- BUGFIX: Remove 100kb limit for torrent file size in Web UI
|
- BUGFIX: Remove 100kb limit for torrent file size in Web UI
|
||||||
- BUGFIX: Fix ratio limiting bug (closes #835217)
|
- 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
|
* Sun May 20 - Christophe Dumez <chris@qbittorrent.org> - v2.9.9
|
||||||
- BUGFIX: More reliable RSS feed parsing (closes #1001777)
|
- BUGFIX: More reliable RSS feed parsing (closes #1001777)
|
||||||
|
|
|
@ -109,7 +109,10 @@ QList<QVariantMap> EventManager::getPropFilesInfo(QString hash) const {
|
||||||
h.file_progress(fp);
|
h.file_progress(fp);
|
||||||
for(int i=0; i<h.num_files(); ++i) {
|
for(int i=0; i<h.num_files(); ++i) {
|
||||||
QVariantMap file;
|
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);
|
libtorrent::size_type size = h.filesize_at(i);
|
||||||
file["size"] = misc::friendlyUnit((double)size);
|
file["size"] = misc::friendlyUnit((double)size);
|
||||||
if(size > 0)
|
if(size > 0)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue