server: qBittorrent: chop the trailing slash off from directory

To sync with other clients.
This commit is contained in:
Jesse Chan
2020-12-05 22:23:15 +08:00
parent 54bb9b998a
commit dbc0211a99
@@ -277,7 +277,7 @@ class QBittorrentClientGatewayService extends ClientGatewayService {
bytesDone: info.completed,
dateAdded: info.added_on,
dateCreated,
directory: info.save_path,
directory: info.save_path.slice(0, -1),
downRate: info.dlspeed,
downTotal: info.downloaded,
eta: info.eta >= 8640000 ? -1 : info.eta,