cmcconomy / iptv-filter

21 stars 7 forks source link

Exclude List #2

Open iceman73 opened 3 years ago

iceman73 commented 3 years ago

Would you be open to adding an Exclude Categories Method?

cmcconomy commented 3 years ago

Currently, entering the secondary "category" screen has the effect of showing as selected, all categories that have at least one selected channel.

Clicking submit deselects every channel then selects every individual channel in every category that is checked as true.

This is a leftover behavior from when the ui only engaged with categories but can still come in handy so í haven't deprecated it yet.

Can you elaborate on the use case or behavior your looking for exactly?

iceman73 commented 3 years ago

My provider doesn't make an easy way to carve out VOD and TV Shows, so i wanted an ability to Filter out all TV channels and the remaining channels are the Movie and TV Show categories.

cmcconomy commented 3 years ago

that's precisely what encouraged me to write this m3u proxy.

Have you run it yet? By default no channels are selected, and you can search/ filter through channel or category names to select channels that the application includes in the outgoing m3u. This should allow you to choose only the channels you want

iceman73 commented 3 years ago

Yes and it helped for the Movies as they are all under Category Movie.

As for TV Show's each Show is it own Category, and I didn't want to have select each new TV Show as they add it.

BTW I am very impressed and using it and love the ease of it.

iceman73 commented 3 years ago

I am actually thinking of setting up multiple instances so i can do TV Channel filtering, Movies, and I may break out sports to its own list as well. Playing around with some other projects as well.

cmcconomy commented 3 years ago

Okay I think I understand what you're saying.. the m3u source file keeps changing as new shows are added, and you want to set up rules for whether to include it exclude new entries. Is that right?

iceman73 commented 3 years ago

You got it

cmcconomy commented 3 years ago

I'll give it some thought thanks for the idea

cmcconomy commented 3 years ago

You got it

If you upgrade to the latest version (instructions in README) I added a feature to help - any channels added since the last time you visited the filter screen are flagged as new. This may eventually be leveraged to also provide the ability to whitelist/blacklist channel name strings to auto-include.. some other time :p

In the meantime I hope this helps.

iceman73 commented 3 years ago

Working well. THis will help for time being. I may get some time to see if I could add some code to help with the allow/block lists

cmcconomy commented 3 years ago

Thanks. The idea I had (open to change) was every time we reload m3u, to look for all new items and call a method to determine whether to include, see: https://github.com/cmcconomy/iptv-filter/blob/e1a02e641b598ff3508bbc932d24256b3b16771c/iptv_updater/iptv_updater.py#L96

then we need probably an admin screen to define field_name and regex_pattern (and whether whitelist/blacklist), as well as default behaviour (include new channels + blacklist, vs exclude new channels + whitelist).