Skip to content

Conversation

@kabobandrice
Copy link

Summary

Adds a new boolean setting prioritize_quality to control how alternate streams are sorted.

Changes

  • Added DEFAULT_PRIORITIZE_QUALITY constant (default: False)
  • Modified _sort_streams_by_quality() to conditionally prioritize quality before M3U source
  • Updated CSV export header to include the prioritize_quality setting
  • Enhanced load_process_channels_action() to handle the new setting

Behavior

  • When disabled (default): Source 1 UHD/FHD/SD, Source 2 UHD/FHD/SD
  • When enabled: Source 1 UHD, Source 2 UHD, Source 1 FHD, Source 2 FHD, etc.

Testing

  • Verified sorting logic with test harness
  • Confirmed backward compatibility (default behavior unchanged)
  • CSV exports now include the setting value for traceability

- Add new 'prioritize_quality' boolean setting (default: False)
- When enabled, sorts streams by quality first, then M3U source priority
- When disabled, maintains original M3U-first sorting behavior
- Update CSV export header to include prioritize_quality setting
- Allows ordering like: Source1 UHD, Source2 UHD, Source1 FHD, Source2 FHD
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant