HydrogenAudio

Hosted Forums => foobar2000 => 3rd Party Plugins - (fb2k) => Topic started by: HellyBelly on 2022-12-26 00:52:03

Title: Discogs Tagger $filter function
Post by: HellyBelly on 2022-12-26 00:52:03
I'm trying to use the $filter function of the discogs tagger 2.23 plugin

A single string as filter works fine:
$filter($array(foo,bar,blabla),foo) > bar; blabla

but when I try to use an array as filter:
$filter($array(foo,bar,blabla),$array(foo,notfoo))
I get this error:
[Error processing function $filter : Array parameter (2) is too deep.]

What am I doing wrong? The filter array is 1 deep, how can that be too deep?
Title: Re: Discogs Tagger $filter function
Post by: da yuyu on 2023-02-06 12:29:36
It is the component documentation which is wrong.
It should be updated, $filter only supports depth 0 (as in your first example).