Browse Source

fix url for qB

causefx 8 years ago
parent
commit
a48c454aa8
1 changed files with 2 additions and 5 deletions
  1. 2 5
      api/functions/homepage-connect-functions.php

+ 2 - 5
api/functions/homepage-connect-functions.php

@@ -599,7 +599,6 @@ function transmissionConnect() {
                     }else{
                         $torrents = json_decode($response->body, true);
                     }
-
     				$api['content']['queueItems'] = $torrents;
                     $api['content']['historyItems'] = false;
     			}
@@ -630,7 +629,7 @@ function qBittorrentConnect() {
                 $headers = array(
                     'Cookie' => 'SID=' . $cookie['SID']->value
                 );
-                $url = $digest['scheme'].'://'.$digest['host'].$digest['port'].$digest['path'].'/query/torrents?filter=downloading&sort=eta';
+                $url = $digest['scheme'].'://'.$digest['host'].$digest['port'].$digest['path'].'/query/torrents?sort=eta';
                 $response = Requests::get($url, $headers, $options);
                 if($response){
                     $torrentList = json_decode($response->body, true);
@@ -647,10 +646,8 @@ function qBittorrentConnect() {
                     }else{
                         $torrents['arguments']['torrents'] = json_decode($response->body, true);
                     }
-
                     $api['content']['queueItems'] = $torrents;
                     $api['content']['historyItems'] = false;
-                    
                 }
             }else{
                 writeLog('error', 'qBittorrent Connect Function - Error: Could not get session ID', 'SYSTEM');
@@ -667,4 +664,4 @@ function accessProtected($obj, $prop) {
   $property = $reflection->getProperty($prop);
   $property->setAccessible(true);
   return $property->getValue($obj);
-}
+}