euzu/m3u-filter

Suffix and Prefix Wrongly Applied in Inputs

jamesarbrown opened this issue · 2 comments

In source.yml inputs, the use of prefix and suffix is mixed up, a prefix causes a suffix, a suffix causes a prefix

Prefix Example

        prefix:
          field: name
          value: ' [Aerial]'

m3u

#EXTINF:-1 tvg-id="BBC%20ONE%20NE%26C" tvg-name=" BBC ONE NE&C [Aerial]" group-title="BBC", BBC ONE NE&C
http://10.8.5.5:55555/BBC%20ONE%20NE%26C

Suffix Example

        suffix:
          field: name
          value: ' [Aerial]'

m3u

#EXTINF:-1 tvg-id="BBC%20ONE%20NE%26C" tvg-name=" [Aerial] BBC ONE NE&C" group-title="BBC", BBC ONE NE&C
http://10.8.5.5:55555/BBC%20ONE%20NE%26C
euzu commented

the if statement was wrong, i have fixed this

euzu commented

@jamesarbrown can you confirm ?