Post-Processing Rules
Post-processing rules are StreamSweeper's most powerful feature. They allow you to automatically organize, filter, and customize your IPTV channels based on EPG (Electronic Program Guide) data and channel information. This is perfect for sports fans who want to follow specific teams or anyone who wants intelligent, dynamic channel organization.
What Are Post-Processing Rules?
Post-processing rules analyze your channel EPG data and apply actions based on criteria you define. Unlike basic filtering which is static, post-processing rules are dynamic - they continuously evaluate what's currently playing and what's coming up.
How They Work
- StreamSweeper fetches EPG data for your channels
- Rules are evaluated against current and upcoming programs
- Matching programs trigger specified actions
- Your playlist is updated automatically
Real-World Example: Create a rule that moves any channel currently showing a game featuring your favorite team to a "My Team" category. When the game ends, the channel moves back to its original category.
Creating Your First Rule
To create a post-processing rule:
- Navigate to Live TV
- Click Edit on your desired playlist
- Scroll to the Post-Processing Rules section
- Click Add New Rule
- Configure your rule criteria and actions
- Click Save Rule
Match Field Options
Rules can match against different fields depending on what you want to filter:
Channel Name
Match based on the channel's name itself:
- Use Case: Organize all sports network channels into a single category
- Example: Match "Sports" to catch Sports HD, Sports 2, Sports News, etc.
Category Name
Match channels already in specific categories:
- Use Case: Apply additional filtering to channels in the "Sports" category
- Example: Take all channels in "Sports" and further organize by league
Program Title
Match based on the EPG program title:
- Use Case: Find all programs featuring specific teams or leagues
- Example: Match "Lakers" to find all Lakers basketball games across any channel
Most Popular: Program Title matching is the most powerful option for sports fans and event tracking. It looks at what's actually playing, not just the channel name.
Program Description
Match based on the detailed EPG description:
- Use Case: Find programs with specific keywords in their detailed descriptions
- Example: Match "Championship" to find title games and tournaments
Match Type Options
Once you've selected what field to match, choose how the matching works:
Contains
Matches if the field contains your search term anywhere:
- Example: "Lakers" will match "Lakers vs Celtics" and "Celtics vs Lakers"
- Best for: Team names, keywords, flexible matching
Exact Match
Matches only if the field exactly equals your search term:
- Example: "Sports Channel" will match "Sports Channel" but not "Sports Channel 2"
- Best for: Precise channel names, specific program titles
Starts With
Matches if the field begins with your search term:
- Example: "Sports" will match "Sports", "Sports 2", "Sports News"
- Best for: Channel families, network variations
Ends With
Matches if the field ends with your search term:
- Example: "HD" will match all HD channel variants
- Best for: Quality indicators, regional suffixes
Regex (Regular Expression)
Advanced pattern matching for complex criteria:
- Example:
(Lakers|Clippers) matches either team
- Best for: Multiple teams, complex patterns, advanced users
Regex Tips: Regular expressions are powerful but complex. Use tools like regex101.com to test your patterns before applying them in StreamSweeper.
AND/OR Logic for Multiple Match Values
When you specify multiple match values, you can choose how they're evaluated:
OR Logic (Default)
Matches if ANY of your criteria are met:
- Example: Matching "Lakers" OR "Clippers" OR "Kings"
- Use Case: Following multiple teams from the same city
AND Logic
Matches only if ALL criteria are met simultaneously:
- Example: Program Title contains "Lakers" AND Category is "Sports"
- Use Case: Very specific filtering with multiple requirements
Best Practice: OR logic is most common for team following. AND logic is useful for complex filtering scenarios where you need multiple conditions to be true.
Exclusion Filters
Sometimes it's easier to define what you DON'T want rather than what you do want:
Exclude Matches
Add exclusion criteria to filter out unwanted matches:
- In your rule, expand Exclusions
- Add terms to exclude
- Channels matching exclusions will be ignored
Common Exclusion Examples
- Exclude "Replay": Only show live games, not replays
- Exclude "Highlights": Full games only
- Exclude specific teams: Show all games except certain teams
Exclusions Run First: StreamSweeper evaluates exclusion filters before inclusion filters. If something matches an exclusion, it won't be processed even if it matches an inclusion rule.
Actions: Move to Category
The most common action is moving matching channels to a custom category:
How It Works
- When a program matches your rule criteria
- The channel is moved to your specified category
- It appears in that category in your IPTV player
- When the program ends, the channel returns to its original category
Example: Team Following
Rule: "My Lakers Games"
Match Field: Program Title
Match Type: Contains
Match Value: Lakers
Action: Move to Category
Category Name: Lakers Live
Result: Any channel currently showing a Lakers game appears in the "Lakers Live" category.
Actions: Rename Channel
Automatically rename channels based on what they're showing:
Dynamic Channel Names
Use the {original} placeholder in your rename pattern to keep the channel's original name as part of the new one:
{original} - The channel's original name
Example: Tagging Live Game Channels
Rule: "Tag Lakers Channels"
Match Field: Program Title
Match Type: Contains
Match Value: Lakers
Action: Rename Channel
Pattern: 🏀 {original}
Result: "Sports Network" becomes "🏀 Sports Network" while a Lakers game is airing on it, then reverts when the game ends.
Combination Power: Each rule performs one action, but you can create two rules with the same match criteria — one to Move to Category and one to Rename Channel — for maximum organization.
Time Window Settings
Control when rules are evaluated based on program timing:
Current Programs Only
Match only programs that are currently airing:
- Use Case: Show what's on RIGHT NOW
- Best for: Live event tracking
Upcoming Programs
Include programs starting within a specific time window:
- Example: Show channels with matching programs in the next 2 hours
- Use Case: Prepare for upcoming games or events
Time Window Options
The EPG look-ahead window is fully customizable from 1 hour to 168 hours (7 days). The default is 24 hours. Common choices:
- 1-2 hours - live event tracking (only what's on now or starting soon)
- 4 hours - an evening of upcoming games
- 24 hours - everything airing today (default)
- 168 hours - plan a full week ahead
EPG Timing: Time windows depend on accurate EPG data from your IPTV provider. Some providers may not include detailed scheduling information.
Priority and Execution Order
When multiple rules might match the same channel, priority determines which rule wins:
Setting Priority
- Each rule has a priority number (default 0)
- Lower numbers = higher priority
- Priority 1 rules execute before Priority 10 rules
Example Priority Setup
Priority 1: Exclusion Rules (hide unwanted content first)
Priority 5: Specific Team Rules (Lakers, Dodgers, etc.)
Priority 10: General Category Organization
Priority 20: Catch-all Rules
Best Practice: Start with priority 10 for most rules. Only adjust priorities when you notice conflicts between rules.
Real-World Examples
Example 1: Following Multiple Sports Teams
Rule Name: "LA Sports Teams"
Match Field: Program Title
Match Type: Contains (OR)
Match Values: Lakers, Dodgers, Rams, Kings
Exclusions: Highlights, Replay
Action: Move to Category
Category: LA Teams Live
Time Window: Current + 1 hour
Priority: 5
Example 2: Premier League Soccer
Rule Name: "Premier League Matches"
Match Field: Program Description
Match Type: Contains
Match Value: Premier League
Action: Move to Category
Category: Premier League
Time Window: 2 hours
Priority: 5
Example 3: News Networks Organization
Rule Name: "All News Channels"
Match Field: Channel Name
Match Type: Regex
Match Value: (News|World News|Breaking News)
Action: Move to Category
Category: 24/7 News
Priority: 10
Example 4: Championship Events
Rule Name: "Championship Games"
Match Field: Program Title
Match Type: Contains (OR)
Match Values: Championship, Finals, Cup Final, Playoff
Exclusions: Highlights
Action: Move to Category
Category: Championships
Time Window: 4 hours
Priority: 1
Add a second rule with the same match criteria and a Rename Channel action (pattern LIVE: {original}) to also tag these channels by name.
Testing Your Rules
Before activating rules in your main playlist, test them:
- Create a test playlist with a small subset of channels
- Add your rule to the test playlist
- Open the playlist in your IPTV player
- Verify channels are categorized correctly
- Adjust match criteria if needed
- Once satisfied, apply to your main playlist
Playlist Preview: After saving a rule, open the playlist preview in StreamSweeper to see the regenerated channel list with your rules applied.
Technical Details
EPG Caching
To ensure fast performance, StreamSweeper caches EPG data:
- Program data is stored with a rolling 7-day look-ahead window
- StreamSweeper automatically re-fetches guide data from your providers on a regular schedule (roughly every 12 hours)
- Manual refresh available in connection settings
Rule Evaluation Timing
Post-processing rules are applied when the playlist is generated:
- When the playlist URL is accessed and no fresh copy is cached (generated playlists are cached for about 2 hours)
- Immediately after you add, edit, or delete a rule (the cache is invalidated and the playlist regenerates)
Performance Consideration: Complex rules with many match values or regex patterns may slightly increase playlist generation time. For best performance, be as specific as possible with your match criteria.
Match Accuracy
Rule matching is case-insensitive by default:
- "lakers" matches "Lakers", "LAKERS", "lAkErS"
- Regex patterns can override this with case-sensitive flags
- Whitespace is normalized (multiple spaces treated as one)
Troubleshooting Rules
Rule Not Matching
- Check EPG availability: Verify your provider includes EPG data
- Review match type: "Exact Match" might be too strict - try "Contains"
- Check spelling: Even small typos prevent matches
- Verify time window: Program might be outside your time window
Too Many Matches
- Add exclusions: Filter out unwanted matches
- Be more specific: Use "Exact Match" or narrower search terms
- Combine criteria: Use AND logic for multiple conditions
Rules Conflicting
- Adjust priorities: Higher priority rules override lower ones
- Check overlaps: Review which channels match multiple rules
- Use exclusions: Prevent lower-priority rules from matching
Best Practices
Start Simple
Begin with one straightforward rule and expand from there:
- Create a rule for one team or category
- Test it thoroughly
- Add more rules incrementally
- Adjust priorities as needed
Use Descriptive Names
Give rules clear names that explain what they do:
- "Lakers Games to Lakers Category" (Good)
- "Rule 1" (Bad)
Document Complex Rules
For regex or multi-criteria rules, add notes explaining the logic in the rule description field.
Next Steps
Continue learning about StreamSweeper features: