I encountered a problem when using Magic Nodes. I'm using the latest release of MM3 (3.0.2.1134) on Windows XP. As part of the discussion with the script author (ZvezdanD) it appears to be a bug within MM3. ZvezdanD was very helpful and modified his script to provide some additional debug information that I've included below.
First, I set the Filters to Album View and then select this Magic Node
Code: Select all
Songs with lyrics|SQL filter:Length(Songs.Lyrics) > 0\<Artist>)
This is the resulting messages (first is from ZvezdanD's debug from his modified script):
For comparison, I then set the Filter to Available Tracks and everything then works. This is the message displayed:
To further test I set Filters back to Album View and selected this MN
Code: Select all
Rating, Genre\<rating|statistic:count(all)>\<genre|statistic:count(all)>
This is the resulting messages (again first is debug info from ZvezdanD modified script):
Based on this information it appears the SDB.Database.ActiveFilterQuery function is inconsistent. For "Album View" filter it returns full SQL query:
For Available Tracks, Music and Audiobooks filters, it returns WHERE part of query. For example, for Available tracks, it is:
Code: Select all
(Songs.IdMedia in (31,28,29) OR Songs.CacheStatus=1)
I encountered a problem when using Magic Nodes. I'm using the latest release of MM3 (3.0.2.1134) on Windows XP. As part of the discussion with the script author (ZvezdanD) it appears to be a bug within MM3. ZvezdanD was very helpful and modified his script to provide some additional debug information that I've included below.
First, I set the Filters to Album View and then select this Magic Node [code]Songs with lyrics|SQL filter:Length(Songs.Lyrics) > 0\<Artist>)[/code]
This is the resulting messages (first is from ZvezdanD's debug from his modified script):
[img]http://img259.imageshack.us/img259/3531/test1arg4.png[/img]
[img]http://img259.imageshack.us/img259/7428/test1bbv3.png[/img]
For comparison, I then set the Filter to Available Tracks and everything then works. This is the message displayed:
[img]http://img186.imageshack.us/img186/1606/test1chy4.png[/img]
To further test I set Filters back to Album View and selected this MN [code]Rating, Genre\<rating|statistic:count(all)>\<genre|statistic:count(all)>[/code] This is the resulting messages (again first is debug info from ZvezdanD modified script):
[img]http://img186.imageshack.us/img186/8811/test2aab1.png[/img]
[img]http://img186.imageshack.us/img186/6803/test2bbk5.png[/img]
Based on this information it appears the SDB.Database.ActiveFilterQuery function is inconsistent. For "Album View" filter it returns full SQL query:
[code]SELECT Songs.Id FROM Songs[/code]
For Available Tracks, Music and Audiobooks filters, it returns WHERE part of query. For example, for Available tracks, it is:
[code](Songs.IdMedia in (31,28,29) OR Songs.CacheStatus=1)[/code]