How to search multiple types? #905
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Im using Spotify.Search.Item and in the documentation it states that you can search using a comma seperated list. The constructor paramter is a single type public SearchRequest(Types type, ...) and passing in a string or list of types is not allowed/supported?. I want to specifcally search for only albums, tracks and artists any other data is not needed. I am currently using the All type and ignoring any of the results returned from audiobooks and episodes but i was wondering if there was a way to only search for multiple types instead of having the API return data that is never going to be used everytime? |
Replies: 2 comments
Hi, varsearch=newSearchRequest(SearchRequest.Types.Album|SearchRequest.Types.Playlist,"Hello World");This should do the trick. |
Thanks didn't realise this was possible. |
Hi,
This should do the trick.