-
Hey All. Can someone tell me if there is a switch that I need to use (or even if it is possible), to ensure that when using m3u-filter in reverse proxy mode, that the output order of the groups and the channels, remain the same as the providers? So far I have tried a combination of things:
However, anything I have tried so far, the output from the xtream api sorts the groups alphabetically. Any suggestions that I can try? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 4 replies
-
Hi @solohpgh, this is not possible. The only solution is to define the sorting yourself, Sorting can be done by using the sort part of input target: You can sort groups or channels inside groups. You can sort ASC or DESC or define a sequence with the channel names. targets:
- name: test
output:
- type: m3u
filter: "!TEST_FILTER!"
options: {ignore_logo: true}
sort:
groups:
order: asc
channels:
- { field: name, group_pattern: '^FR.*', order: asc }
- field: name
group_pattern: '^News'
order: asc
sequence:
- CNN
- BBC
- NTV
mapping: If you want to keep the provider's order, we will need to implement that. The problem is that multiple sources can be combined, and channels can be mapped to new groups. This means the result could be completely different from the original source. The group names might be different, the channel names could change, and channels from different sources might be mixed into a new group. How would you map the original to the result in this case? |
Beta Was this translation helpful? Give feedback.
-
@solohpgh please do not forget that the sort is applied at the end, this means if you rename a channel or group the final name will be used for sort. |
Beta Was this translation helpful? Give feedback.
-
how can i do filter passthrough? at this point i just want the simplest things to do as i will come back later to learn the mapping, filters, etc later on. right now i just want to get this running to see how it works? |
Beta Was this translation helpful? Give feedback.
Hi @solohpgh,
this is not possible.
The only solution is to define the sorting yourself,
Sorting can be done by using the sort part of input target:
You can sort groups or channels inside groups. You can sort ASC or DESC or define a sequence with the channel names.
If you want to keep the prov…