xiaodoudou / PlexIPTV

This app simulate a DVR device for Plex by providing a layer to any IPTV provider (that provide a m3u8 playlist)
Apache License 2.0
193 stars 24 forks source link

Filters #13

Closed Reverz3 closed 6 years ago

Reverz3 commented 6 years ago

Are the filters reggex ? It would be really usefull to filter a really too large all-world iptv list !

if not, is it possible to add the feature ?

Thank you for the good work

Reverz3 commented 6 years ago

Ok i downloaded your project, yarned it, and did a modif myself, it run like a charm Modifications are in index.js if (name.search(filter.name) !== -1) { channel = filter.channel found = true return false }

replaced by if (name.search(filter.name) !== -1) { if (filter.channel != "-1") {channel = filter.channel} else {defaultChannel++} found = true return false }

So, when putting -1 in channel number of the filter, it will hold all channels having the "name" of the filter in it.

My sample is that i have 14000+ channels but needed only the one's with "FR: " of "BE: " in it. If i set the channel number to -1 in the filter, the channel number will be the defaultchannel and that one is incremented.

Thanks again for your work. I think you saved my relationship with my wife :D

xiaodoudou commented 6 years ago

Name on filter settings files are regex, you need to escape the \ and you are good ;-)

xiaodoudou commented 6 years ago

Regarding the similar name feature you are asking; having an example will help me to implement a better approach.