Sfoglia il codice sorgente

Added rTorrent Labels
Added more rTorrent Filers

causefx 7 anni fa
parent
commit
0278f2a3a2

+ 9 - 0
api/functions/homepage-connect-functions.php

@@ -814,6 +814,12 @@ function rTorrentConnect()
 				"f.size_bytes=",
 				"f.size_chunks=",
 				"f.completed_chunks=",
+				"d.custom=",
+				"d.custom1=",
+				"d.custom2=",
+				"d.custom3=",
+				"d.custom4=",
+				"d.custom5=",
 			), array());
 			$response = Requests::post($url, array(), $data, $options);
 			if ($response->success) {
@@ -841,8 +847,11 @@ function rTorrentConnect()
 							'hash' => $value[12],
 							'complete' => ($value[13]) ? 'yes' : 'no',
 							'ratio' => $value[14],
+							'label' => $value[20],
 							'status' => $tempStatus,
 							'temp' => $value[16] . ' - ' . $value[17] . ' - ' . $value[18],
+							'custom' => $value[19] . ' - ' . $value[20] . ' - ' . $value[21],
+							'custom2' => $value[22] . ' - ' . $value[23] . ' - ' . $value[24],
 						);
 					}
 				}

+ 16 - 0
api/functions/homepage-functions.php

@@ -364,6 +364,22 @@ function getHomepageList()
 			'name' => 'Size Asc',
 			'value' => 'sizea'
 		),
+		array(
+			'name' => 'Label Desc',
+			'value' => 'labeld'
+		),
+		array(
+			'name' => 'Label Asc',
+			'value' => 'labela'
+		),
+		array(
+			'name' => 'Status Desc',
+			'value' => 'statusd'
+		),
+		array(
+			'name' => 'Status Asc',
+			'value' => 'statusa'
+		),
 	);
 	$qBittorrentSortOptions = array(
 		array(

+ 1 - 0
js/functions.js

@@ -4186,6 +4186,7 @@ function buildDownloaderItem(array, source, type='none'){
 							<td class="hidden-xs"><i class="fa fa-download"></i>&nbsp;`+download+`</td>
 							<td class="hidden-xs"><i class="fa fa-upload"></i>&nbsp;`+upload+`</td>
 							<td class="hidden-xs">`+size+`</td>
+							<td class="hidden-xs">`+v.label+`</td>
 							<td class="text-right">
 								<div class="progress progress-lg m-b-0">
 									<div class="progress-bar progress-bar-info" style="width: `+percent+`%;" role="progressbar">`+percent+`%</div>