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

[BUG] Custom pool #24

Closed username116 closed 9 months ago

username116 commented 9 months ago

I've seen two other things with Custom pool:

For example, I ask this:

Playlist A,5;Playlist B,8 Playlist A,ALL;Playlist B,ALL Playlist A,start;Playlist B,start Playlist C %PLAYLIST_INDEX%

The result is 11 tracks in Playlist C. It should be 13.

The console says that:

Playlist Tools Pools: source -> Playlist A Playlist Tools Pools: pool size -> 4 (29) tracks Playlist Tools Pools: source -> Playlist B Playlist Tools Pools: pool size -> 7 (35) tracks Playlist Tools Pools: sorting (%PLAYLIST_INDEX%) Playlist Tools Pools: playlist -> Playlist C: 11 tracks

regorxxx commented 9 months ago

About your results, it should not be 13, since duplicates are always removed. The number of tracks is just a desired number, it may be lower if there are no results or there are duplicates, by path, TF or regExp.

For ex: image

image

image

image

image

regorxxx commented 9 months ago

Have changed the logs to better show what's going on: image

username116 commented 9 months ago

I did the update and the first point is solved.

Thanks for the explanation, but there are no duplicates, either within playlists or between playlists. I've just tried again with the latest update, in a new panel so these are the default settings. But I'm not familiar with Playlist-Tools and TF and regExp rules.

Screenshots

![1](https://github.com/regorxxx/Playlist-Tools-SMP/assets/108369600/c1e03b37-13f1-4ad0-83f2-406ef5b1127b) ![2](https://github.com/regorxxx/Playlist-Tools-SMP/assets/108369600/80b208fe-4e9f-481c-88dc-0de446b54a94) ![3](https://github.com/regorxxx/Playlist-Tools-SMP/assets/108369600/5f3c9474-ad40-474a-857f-795022a766ce) ![4](https://github.com/regorxxx/Playlist-Tools-SMP/assets/108369600/05bf467a-37e8-40c1-9e9f-906b95f9207a) ![5](https://github.com/regorxxx/Playlist-Tools-SMP/assets/108369600/7bc4d71c-25c1-4e0a-bba7-176758df9b6d) ![6](https://github.com/regorxxx/Playlist-Tools-SMP/assets/108369600/9075ff41-38ce-480e-8b73-dd9fecf9a971)

regorxxx commented 9 months ago

I see, that looks like a bug. Was not able to reproduce it before.

username116 commented 9 months ago

It's working fine now.

Memorized settings for the next time is good too. Thanks!