The ultimate one-click cleanup toolkit
The optimizer operates on channels already accepted by the parser. It does not validate every M3U directive or repair arbitrary vendor syntax. It removes entries without a usable URL, keeps the first occurrence of each trimmed URL, normalizes whitespace, adds `group-title="Ungrouped"` when missing, and sorts the result.
Detailed before/after comparison
The preview reports before/after channel and group counts, duplicates removed, empty entries removed, and formatting changes. It does not calculate a file-size difference or show a line-by-line diff. Choosing Apply replaces the current in-memory workspace, so retain the original file as the undo path.