michaelherger / lms-plugin-tidal

A TIDAL plugin to integrate with the Lyrion Music Server (fka. Logitech Media Server)
43 stars 8 forks source link

Search-->Everything returns nothing #16

Closed gregbreit closed 8 months ago

gregbreit commented 8 months ago

Under "Search", there is an option to search by "Everything". No matter the search term, it always returns an empty result.

I can see in Plugin.pm that this is a temporary placeholder -- no search type is passed through to TIDAL. No doubt you're planning to implement this at some point -- I'm reporting this issue so you don't inadvertently unleash it on the world in this state.

Probably a lower priority feature, IMO, since searching by Artist, Album, Track, or Playlist all appear to function perfectly. I don't recall "Everything" being an option in the old MySB plugin.

If you do eventually implement this, it might be useful for "Everything" to work like the LMS basic library search, which categorizes search results by Albums, Artists, and Tracks. Perhaps that's the plan.

philippe44 commented 8 months ago

I was the one putting that placeholder and from memory I did it because I saw an option in the API. I only needed the by track search as I was implementing the protocol handler part. If everything is really an option, I'll see if I can add it

GioF71 commented 8 months ago

Hello @philippe44, in tidalapi, I remember that there is not an "everything" search. UPnP control point like BubbleUPnP implement the feature by making multiple searches, and then combining the results. I have tried BubbleUPnP while I was debugging my tidal plugin and discovered that. Maybe you can do the same in your plugin. This should not be an heavy operation and should not trigger errors on the paywall api, and in any case, people don't do many searches without at least a few seconds between each one of them, so it should not be an issue.

Hope this helps.

michaelherger commented 8 months ago

Fixed in 668a15c74df4953027f58480d446ae8f0a091681.

philippe44 commented 8 months ago

In fact there is an everything search

GioF71 commented 8 months ago

In fact there is an everything search

yes, I saw your implementation and realized it. I didn't use it in my plugin because this search is not required by control points, so I ended up thinking it did not exist, but I was wrong. Sorry for misleading you.