@@ -224,7 +224,7 @@ class QBittorrentClientGatewayService extends ClientGatewayService {
224224 const { torrents} = await this . fetchTorrentList ( ) ;
225225
226226 const flipNeeded : Array < string > = hashes . filter ( ( hash ) => {
227- const currentIsSequential = torrents [ hash ] ?. isSequential ;
227+ const currentIsSequential = torrents [ hash . toUpperCase ( ) ] ?. isSequential ;
228228 return currentIsSequential != null && currentIsSequential !== isSequential ;
229229 } ) ;
230230
@@ -253,7 +253,7 @@ class QBittorrentClientGatewayService extends ClientGatewayService {
253253 return this . clientRequestManager
254254 . torrentsAddTrackers ( hash , trackers )
255255 . then ( this . processClientRequestSuccess , this . processClientRequestError )
256- . then ( ( ) => delete this . cachedProperties [ hash ] ) ;
256+ . then ( ( ) => delete this . cachedProperties [ hash . toUpperCase ( ) ] ) ;
257257 } ) ,
258258 ) . then ( ( ) => undefined ) ;
259259 }
@@ -303,14 +303,14 @@ class QBittorrentClientGatewayService extends ClientGatewayService {
303303 { } ,
304304 ...( await Promise . all (
305305 infos . map ( async ( info ) => {
306- if ( this . cachedProperties [ info . hash ] == null ) {
307- const properties = await this . clientRequestManager
308- . getTorrentProperties ( info . hash )
309- . catch ( ( ) => undefined ) ;
310- const trackers = await this . clientRequestManager . getTorrentTrackers ( info . hash ) . catch ( ( ) => undefined ) ;
306+ const hash = info . hash . toUpperCase ( ) ;
307+
308+ if ( this . cachedProperties [ hash ] == null ) {
309+ const properties = await this . clientRequestManager . getTorrentProperties ( hash ) . catch ( ( ) => undefined ) ;
310+ const trackers = await this . clientRequestManager . getTorrentTrackers ( hash ) . catch ( ( ) => undefined ) ;
311311
312312 if ( properties != null && trackers != null && Array . isArray ( trackers ) ) {
313- this . cachedProperties [ info . hash ] = {
313+ this . cachedProperties [ hash ] = {
314314 dateCreated : properties ?. creation_date ,
315315 isPrivate : trackers [ 0 ] ?. msg . includes ( 'is private' ) ,
316316 trackerURIs : getDomainsFromURLs (
@@ -322,7 +322,7 @@ class QBittorrentClientGatewayService extends ClientGatewayService {
322322 }
323323 }
324324
325- const { dateCreated = 0 , isPrivate = false , trackerURIs = [ ] } = this . cachedProperties [ info . hash ] || { } ;
325+ const { dateCreated = 0 , isPrivate = false , trackerURIs = [ ] } = this . cachedProperties [ hash ] || { } ;
326326
327327 const torrentProperties : TorrentProperties = {
328328 bytesDone : info . completed ,
@@ -332,7 +332,7 @@ class QBittorrentClientGatewayService extends ClientGatewayService {
332332 downRate : info . dlspeed ,
333333 downTotal : info . downloaded ,
334334 eta : info . eta >= 8640000 ? - 1 : info . eta ,
335- hash : info . hash ,
335+ hash,
336336 isPrivate,
337337 isInitialSeeding : info . super_seeding ,
338338 isSequential : info . seq_dl ,
0 commit comments