[Feature] <title>Add search for offline music/library
Is there an existing issue for this?
- [x] I have searched the existing issues and confirmed that this feature is not already requested.
- [x] I read the FAQ section and there's nothing mentioned about this feature.
Category of the Feature
No response
Credits
Me
Pain
It's not possible to search for specific songs added to downloads or in my library.
Suggested Solution
Make it possible to search for music offline. Thanks
Useful Resources/References
No response
I made a test version of your project adding what I suggested. I basically allowed the search tab to be opened in offline mode and added two new search tabs as you can see in the image.
I made a test version of your project adding what I suggested. I basically allowed the search tab to be opened in offline mode and added two new search tabs as you can see in the image.
@elias001011 Looks good. I haven't tested it yet, though. We also had a request for search inside playlists, so I'm thinking it might be better to add a common search function on the playlist page and the user_songs page, and update the states when the user searches for something. That way it would work for the offline library as well as other online or liked playlists. What do you think?
Also, if a user has added a song to both the offline and liked lists, it might appear three times in the results with this approach.
I made a test version of your project adding what I suggested. I basically allowed the search tab to be opened in offline mode and added two new search tabs as you can see in the image.
@elias001011 Looks good. I haven't tested it yet, though. We also had a request for search inside playlists, so I'm thinking it might be better to add a common search function on the playlist page and the user_songs page, and update the states when the user searches for something. That way it would work for the offline library as well as other online or liked playlists. What do you think?
Also, if a user has added a song to both the offline and liked lists, it might appear three times in the results with this approach.
Hi @gokadzev! Thanks for the quick reply.You made a great point. Adding a local search bar directly inside the playlist_page and user_songs page makes much more sense for the app's overall architecture. It perfectly solves the offline library issue while also fulfilling the feature request for searching inside specific playlists in a cleaner way.
Regarding the duplication issue you noticed in my screenshot, you are absolutely right. If a user searches from the main search tab, a song could appear 3 times if it's downloaded, liked, and available online simultaneously.
By the way, I opened a Draft PR with the code for the screenshot I sent (just trying to help out). Since your idea of searching directly inside the specific library pages is the definitive way to go, feel free to ignore or close that PR if you want to implement it your way from scratch! Or, if you want to use the PR as a temporary workaround until the new feature is built, I can quickly update it to filter out duplicated songs.
Thanks again for your time and for the amazing app!