[mythtv] [PATCH] MythMusic incremental search

Jérôme Forissier jerome at forissier.org
Tue Sep 6 18:42:35 UTC 2005


I've been building my own PVR with MythTV for the past month or so, and now 
I've got pretty much everything working OK. MythTV is a great piece of 
software! However I was a bit disappointed with MythMusic's UI, especially 
with regards to file browsing and (the lack of) search capabilities.

I thought about implementing an 'incremental search' dialog -- a box with a 
file list and a search field, the file list gets updated each time a new 
character is typed in the search field. I found some discussions in this 
forum about search capabilities for MythMusic, but no implementation that 
would fit my needs so I decided to start coding ;-)

The attached patch will add a 'Search' button to the main MythMusic menu. 
Once the search dialog is displayed you can enter some text in the search 
field and you get a list of all the files that match the search term, either 
in the filename, the artist, the album or the song title. If you press 
return, all the files from the list are added to the active playqueue. If 
you select a single file, only that file is added.

Also, the search dialog works well with a remote, I mean, '2526' will search 
for [2abc][5jkl][2abc][6mno] which will match e.g. 'Alan'.

The patch is for mythplugins-0.18.1.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: mythmusic_search.patch
Type: application/octet-stream
Size: 11794 bytes
Desc: not available
Url : http://mythtv.org/pipermail/mythtv-dev/attachments/20050906/adc407fc/mythmusic_search.obj

More information about the mythtv-dev mailing list