Skip to content

Remove Field

The remove_field rule removes attributes/tags from channels, matching by selector and patterns.

YAML Structure

remove_field:
  selector: {}
  condition: {}

Fields

Field Type Required Description
selector Selector Yes What to remove (attribute/tag)
patterns []regex Yes Patterns (regex) to match
condition Condition No Optional, restricts rule

Examples

Remove "tvg-logo" attribute from international channels:

channel_rules:
  - remove_field:
      selector: attr/tvg-logo
      condition:
        selector: attr/group-title
        patterns: ["^International$"]