hoshsadiq / m3ufilter

ABANDONED - A tool that allows to filter specific items from an m3u filter designed for IPTV.
GNU General Public License v2.0
49 stars 18 forks source link

Channels are mixed #17

Closed Surfoo closed 4 years ago

Surfoo commented 4 years ago

Hello,

I would like to remove almost all groups from the original m3u but in the output, channels are mixed (French and USA channels).

Here my config:

providers:
  - uri: http://randomurl.com
    filters:
        - match(Group, "EU FRANCE FULL HD") || match(Group, "^USA$")

Is my configuration wrong?

hoshsadiq commented 4 years ago

What do you mean mixed?

Your configuration seems fine. Do you have a few examples of the EXTINF lines you are trying to match?

Surfoo commented 4 years ago

French and USA Channels are combined in the output:

$ /tmp/m3u-filter_linux_amd64 -config=config.yaml                                                                                          

INFO[2020-03-04T22:31:44+01:00]m3u/process.go:35 m3u.GetPlaylist() reading from provider http://domain.com 
INFO[2020-03-04T22:31:46+01:00]m3u/m3u.go:103 m3u.decode() Matched 286 valid streams out of 14041. Took 195ms

#EXTM3U
#EXTINF:-1 CUID="bba26cc66054f586ee762ae2190f7804" tvg-id="" tvg-name="USA: SMITHSONIAN CHANNEL" group-title="USA" tvg-logo="",USA: SMITHSONIAN CHANNEL
http://domain.com/path/
#EXTINF:-1 CUID="f993e77a8157ae151ba00252d1c39d0b" tvg-id="" tvg-name="USA: HGTV UHD" group-title="USA" tvg-logo="",USA: HGTV UHD
http://domain.com/path/
#EXTINF:-1 CUID="c6dc6183b4267c6f6e5761944df76011" tvg-id="" tvg-name="===== Enfants =====" group-title="EU FRANCE FULL HD" tvg-logo="",===== Enfants =====
http://domain.com/path/
#EXTINF:-1 CUID="864670c870ac3a0793d34fe5b481c200" tvg-id="" tvg-name="USA: MTV LIVE" group-title="USA" tvg-logo="",USA: MTV LIVE
http://domain.com/path/
#EXTINF:-1 CUID="635ab50ecf7db3fa61014739261af356" tvg-id="" tvg-name="USA: AXS TV" group-title="USA" tvg-logo="",USA: AXS TV
http://domain.com/path/
#EXTINF:-1 CUID="427cc979052f5c1f9ab3800a4b53c2fc" tvg-id="" tvg-name="PARAMOUNT CHANNEL" group-title="EU FRANCE FULL HD" tvg-logo="http://www.vodkom.com:25461/images/Astra19/1_0_19_19CE_444_1_C00000_0_0_0.png", PARAMOUNT CHANNEL
http://domain.com/path/
...
hoshsadiq commented 4 years ago

The tool doesn't attempt to organise categories unless you specifically ask it to. Use the core.group_order setting to order it. Note that this option is still experimental, so it may not work. In addition, your m3u playlist loader might not work using the group order the way Kodi's pvr.simpleiptv client works.

Surfoo commented 4 years ago

ok, it works with :

core:
    group_order:
        - EU FRANCE FULL HD
        - USA

Thanks!