Remove Duplicates
The remove_duplicates
rule keeps only one channel among groups considered duplicates (e.g., preferring "CNN HD" over "
CNN").
YAML Structure
Fields
Field | Type | Required | Description |
---|---|---|---|
patterns | []regex |
Yes | Priority order (first has highest priority) |
selector | Selector |
No | Use attribute or tag to identify groups |
final_value | FinalValue |
No | Use for modify result channels |
condition | Condition |
No | Only apply if condition matches |
Examples
Prefer the best quality:
# Input: CNN HD, CNN 4K
# Output: CNN HQ
playlist_rules:
- remove_duplicates:
patterns: ["4K", "UHD", "FHD", "HD", "SD", ""]
final_value:
template: "{{.BaseName}} HQ"
Restrict deduplication to specific clients: