regorxxx / Playlist-Tools-SMP

A collection of Spider Monkey tools for foobar2000: from removing duplicates, to dynamic queries or "spotify-like" playlist creation.
https://regorxxx.github.io/foobar2000-SMP.github.io/scripts/playlist-tools-smp/
GNU Affero General Public License v3.0
40 stars 6 forks source link

"Similar Tracks" button creates invalid queries #20

Closed sundayLOOKplants closed 1 year ago

sundayLOOKplants commented 1 year ago

The Similar Tracks button does not work for me - here's the output from a random The Weeknd track:

Query not valid. Check query:
(($ascii(%genre%) IS R&B OR $ascii(%genre%) IS Pop OR $ascii(%genre%) IS Electronic) OR ($ascii(%style%) IS Synthpop OR $ascii(%style%) IS Alternative R&B) OR ("$year(%date%)" GREATER 2005 AND "$year(%date%)" LESS 2035)) AND (NOT (%rating% EQUAL 2 OR %rating% EQUAL 1) AND NOT (STYLE IS Live AND NOT STYLE IS Hi-Fi) AND %channels% LESS 3 AND NOT COMMENT HAS Quad AND TITLE PRESENT AND ARTIST PRESENT AND DATE PRESENT)
regorxxx commented 1 year ago

There is something wrong there. It should be %style% and not $ascii(%style%), etc. This is obviously fixed on newer versions, but it's possible at some point I released a file with such issue.

  1. Which version are you using?
  2. By "Similar Tracks" I suppose you are talking about Search by distance buttons, which add 3 buttons (one of them named like that).

I will simply suggest you to delete all files and re-download my scripts again, all of them. Following these instructions: https://github.com/regorxxx/Playlist-Tools-SMP/wiki/Installation#nightly-versions I have fixed and updated so many things, and I should create a new release asap.

Or... open the properties panel and look for something like:

Change those to %genre%, %style%, etc. It will fix it.

regorxxx commented 1 year ago

Or just download new release and install from zero. :)

regorxxx commented 1 year ago

Closing it, let me know if you have any problem.