server: qBittorrent: trim whitespaces after tags string split

This commit is contained in:
Jesse Chan
2020-12-29 21:43:43 +08:00
parent 941c3d72e5
commit 87e4b54bc9
@@ -347,7 +347,7 @@ class QBittorrentClientGatewayService extends ClientGatewayService {
seedsTotal: info.num_complete,
sizeBytes: info.size,
status: getTorrentStatusFromState(info.state),
tags: info.tags === '' ? [] : info.tags.split(','),
tags: info.tags === '' ? [] : info.tags.split(',').map((tag) => tag.trim()),
trackerURIs,
upRate: info.upspeed,
upTotal: info.uploaded,