Bridge search neq or ne
Proxima
Nice. Thanks.
list($key, $opt, $val) = explode(' ', $v, 3);
http://wow.mucodes.com/api/bridge/shoutcast/search?limit=2000&page=2&search=shoutcast_main_genre%20eq%20Easy%20Listening
list($key, $opt, $val) = explode(" ", "shoutcast_main_genre eq Easy Listening")
$key = "shoutcast_main_genre"
$opt = "eq"
$val = "Easy"
···
else {
//list($key, $opt, $val, $val1) = explode(' ', $v);
$arr = explode(' ', $v);
$key = $arr[0];
$opt = $arr[1];
switch ($opt) {
case 'gt':
$opt = '>';
break;
case 'gte':
$opt = '>=';
break;
case 'lt':
$opt = '<';
break;
case 'lte':
$opt = '<=';
break;
case 'eq':
$opt = '=';
break;
case 'ne':
$opt = '!=';
break;
}
$search = "{$key} {$opt}";
$size = sizeof($arr);
for($i=2; $i < $size; $i++){
$search .= " " . $arr[$i];
}
}
$_sc['search'][] = $search;
···
Array
(
[search] => Array
(
[0] => shoutcast_main_genre = Easy
)
[order_by] => Array
(
[_item_id] => numerical_desc
)
[skip_triggers] => 1
[ignore_pending] => 1
[privacy_check] =>
[limit] => 100
)
[search] => Array
(
[0] => shoutcast_main_genre = Easy Listening
)