Skip to content

Add IPTV channel profiles for filtering and cleanup #50

Description

@rroy676

Goal

Add arr-style profile concepts adapted to IPTV so users can clean up, prioritize, and filter very large playlists more effectively.

Problem

IPTV playlists often contain duplicate channels, SD/HD/FHD variants, VOD/series entries, adult channels, regional duplicates, unstable streams, and channels without EPG data.

Arr apps use profiles to help users define what they prefer. Stationarr could use similar concepts for IPTV channel management.

Expected behaviour

Add channel profiles or cleanup profiles that can guide imports, filtering, deduplication, and generated outputs.

Example profile rules:

- Prefer HD over SD
- Prefer FHD over HD
- Exclude SD if HD/FHD exists
- Exclude VOD/movie/series entries
- Exclude adult channels
- Prefer channels with EPG data
- Prefer selected countries
- Prefer selected groups/categories
- Exclude duplicate channel names
- Exclude channels with broken/empty stream URLs

Suggested first version

Start with read-only/planning or simple filters before automatic deletion.

Possible Phase 1:

- Add cleanup/filter profile definitions
- Apply profile preview to a playlist
- Show what would be kept/excluded
- Allow users to manually apply selected changes

Possible Phase 2:

- Auto-apply profile during import or refresh
- Deduplicate by channel name/tvg-id/group
- Prefer higher quality variant
- Create generated outputs based on profile

Safety requirements

  • Do not delete channels permanently without confirmation.
  • Prefer disable/exclude-from-output over destructive deletion.
  • Show preview/counts before applying.
  • Make profile behaviour clear and reversible where possible.

Validation

  • Create a profile that prefers HD/FHD and excludes SD duplicates.
  • Preview it against a playlist with duplicates.
  • Confirm the preview explains what would be kept/excluded.
  • Apply changes and confirm generated output respects the profile.

Related

Part of making Stationarr feel more native to the arr/self-hosted ecosystem. Related to large playlist performance (#5) and possible VOD/series import/counting issue #9.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions