Skip to content
This repository has been archived by the owner on Mar 2, 2021. It is now read-only.

Implement Channel Quality Filtering #24

Open
Olivier6767 opened this issue Jun 26, 2020 · 1 comment
Open

Implement Channel Quality Filtering #24

Olivier6767 opened this issue Jun 26, 2020 · 1 comment
Labels
enhancement New feature or request

Comments

@Olivier6767
Copy link

I would like to see the possibility to filter channels by quality.
My IPTV provider makes most channels (but not all) available in multiple qualities. Here is an example:

BBC One
BBC One SD
BBC One HD
BBC One FHD
BBC One UHD

So far, in m3u-filter, I can use a regex filter to select only FHD channels for example.
However, not all channels are available in every quality. For example:

BBC Two SD
BBC Two HD

So if I filter for example on FHD, I will not get BBC Two.
If I filter on HD, I get both channels, but not with the quality I would like (FHD).

Would it be possible to add a filter to choose a certain quality level and avoid duplicate?
An idea would be to define a score by quality, for example:

SD or no quality indication = 1
HD = 2
FHD = 3
UHD = 4

Then define the target quality, for example FHD (score 3)
Then, for any channel with duplicates, take the channel with the highest score which is less or equal to the target quality.

Using my previous example, this would select:

BBC One FHD (score 3)
BBC Two HD (score 2)

This would help filter out a lot of duplicate channels.
Thanks for your consideration on this request.

@hoshsadiq
Copy link
Owner

I've got a PR waiting and still developing that should make this somewhat easier. Once that's merged, I will look into implementing this.

@hoshsadiq hoshsadiq added the enhancement New feature or request label Jun 27, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants