Page 1 of 1

Be able to search for songs in playlists? (Created-Solved)

PostPosted: 04 Jan 2017, 12:53
by irishwill2008
Hi All,

It would be great if you can search for songs within playlists without having to add each one to the queue THEN having to search.

It would be great if you can go into the queue (being full or not) and be able to search for a song and it can pick up the ones you have made in a playlist. Therefore you can search for songs without having to add them first ;) A bit like how the usb / localstorage works!

Ideas on how to do this?
Perhaps load all the playlist content into a hidden queue / run another player maybe? Then when you search it just sets the display to block / none etc depending on what is being done. This way there wont be a massive load on the system accessing the gui!

I myself will in the meantime look into developing this. But if someone has ideas on how it can be done or more information that can help the creation of this then that would be great!!

I think personally, this would be a great feature.

Regards,
Will.

Re: Be able to search for songs in playlists? (Created-Solve

PostPosted: 06 Jan 2017, 11:27
by irishwill2008
I created this feature and is no longer needed for myself but if rune wants to create this in the future then i would love to know how they did it.


How I did it?
Create a hidden element and populate the lists (exactly like how database-entries works). How to populate them? I have a script to grab the contents of all playlists and put them into one master .m3u but leave that safe then I have an ajax call that reads from that .m3u and pulls the data allowing me to populate the lists etc. Then i used the queue's search code and used it again for my "Master Search" - editing it to work with the design. Now if i use the search bar in the home tile page, it will search everything!!

The reason why i needed this was i redesigned runeaudio by adding a new feature so i can load in my master library which is stored on my server. It then streams the audio. I have this working by loading them (a bit like webradio) but loading them into .m3us and doing some string manipulation to make it display the correct title, artist etc.

None of the above affects any RuneAudios code and runeui is still the exact same! All i do is add more features that i make use of xD.

As this design is for my needs especially, i want be posting a HOWTO guide as there is A LOT of code and implementations needed to complete this.

Regards,
Will.