xTeVe icon indicating copy to clipboard operation
xTeVe copied to clipboard

Add Search or similar to XMLTV Channel selector

Open mmarquezs opened this issue 4 years ago • 7 comments

Selecting the correct xmltv channel in the Mapping window is very annoying if you have a lot of channels info. Dropdown list are good if there isn't a lot of elements but if there is a lot they become annoying. First I get a freeze of 1 sec while loading the list and then usually the dropdown list supports "searching" by typing the text but it doesn't help much if there is a lot of channels that start the same or have extra data before the channel name. Plus if you use touch screens or tablets or phones you might not be able to "search" this way.

Describe the solution you'd like A dropdown list or similar with search capabilities. It could be as simple as an input with a datalist (https://developer.mozilla.org/en/docs/Web/HTML/Element/datalist) or using a js library for it. The search in my opinion should fuzzy search.

Extra (Optional): It would awesome if by default when loading the mapping window it auto searchs and shows in the list the closest ones to the channel name, so most of the time you wouldn't need to even search, maybe even autoselect the first result.

Describe alternatives you've considered Not sure of any alternative. I guess filtering functionality for xmltv it might help to reduce elements but the problem it would still be there.

mmarquezs avatar Jul 05 '20 09:07 mmarquezs

would be great if they add a search bar which would then be able to filter everything that contains the text that is inputted into the search bar.

BryantS11 avatar Sep 11 '20 01:09 BryantS11

@bsantos11 There is a search Bar...... image

MCTyler avatar Sep 11 '20 17:09 MCTyler

@bsantos11 There is a search Bar...... image Im talking about where you would select the channel to match with As you can see there i have a big XMLTV list and it makes it hard for me to search for the correct ones. xteve

BryantS11 avatar Sep 11 '20 20:09 BryantS11

Yea, that part suks with Custom EPG, but it is what it is. Many have asked for this and have been rejected. Search closed issues.

MCTyler avatar Sep 12 '20 14:09 MCTyler

@mar-mei I tried but didn't even know where to start, I tried adding a filtering function for mapping channels. But couldn't figure it out in the source code. But all that is needed is to change the tag from a "select" to "datalist", and add a input box that would look like this

Result would look like this:

The function of this is that users would be able to look for the correct epg from a huge list, in a faster and more efficient way

Would be great if this feature could be added

BryantS11 avatar Sep 29 '20 18:09 BryantS11

Here is the line in the source code, but this is used for all SELECT elements. With DATALIST and INPUT, however, each entered value must always be checked, since values that do not exist can also be entered there. https://github.com/xteve-project/xTeVe/blob/71dfe912722f3aa7cf10a3764bcd86867ee32fa4/ts/menu_ts.ts#L981

After changing the .ts files you have to run the script in the TS folder, then the Jvascript files will be created. xTeVe must also be started with the -dev switch.

mar-mei avatar Sep 29 '20 20:09 mar-mei

a fuzzy query filter feature will be very friendly

timiil avatar Apr 20 '24 15:04 timiil