优化过滤条件

This commit is contained in:
iyuu.cn
2020-01-12 18:12:24 +08:00
parent ccfc0a0153
commit 2ccec4bc12

View File

@ -577,7 +577,7 @@ function filterStatus( $v ){
* qBittorrent过滤函数只保留正常做种
*/
function qbfilterStatus( $v ){
if( ($v['state']=='uploading') || ($v['state'] == 'stalledUP') || ($v['state'] == 'pausedUP') || ($v['state'] == 'queuedUP') || ($v['state'] == 'checkingUP') || ($v['state'] == 'forcedUP') ){
if( isset($v['status']) && in_array($v['state'], array('uploading','stalledUP','pausedUP','queuedUP','checkingUP','forcedUP')) ){
return true;
}
return false;