Describe the bug
When Category Detail is set to None - single group (prefix only, no categories), Lineuparr still appends All to the configured Channel Group Prefix.
For example, with the Channel Group Prefix set to Spectrum, the resulting Dispatcharr channel group is created as:
Spectrum: All
Based on the setting description, I would expect the group to simply be named:
Spectrum
To Reproduce
Steps to reproduce the behavior:
Open the Lineuparr plugin settings.
Set Channel Group Prefix to Spectrum.
Set Category Detail to None - single group (prefix only, no categories).
Save the settings.
Run the Lineuparr channel sync/full sync.
Check the resulting channel group in Dispatcharr.
The group is created as Spectrum: All instead of Spectrum.
Expected behavior
When Category Detail is set to None - single group (prefix only, no categories), the resulting group should use only the configured prefix.
For example:
Spectrum
rather than:
Spectrum: All
The other Category Detail modes could still create category-specific groups such as Spectrum: Movies, Spectrum: Sports, etc.
Screenshots
Screenshot attached showing:
Channel Group Prefix: Spectrum
Category Detail: None - single group (prefix only, no categories)
Resulting Dispatcharr group: Spectrum: All
Desktop (please complete the following information):
OS: Windows
Browser: Chrome
Lineuparr: current plugin version
Dispatcharr: 0.31.0
Smartphone (please complete the following information):
N/A
Additional context
Looking at the plugin code, Category Detail = none appears to collapse all channels into a synthetic All category:
if detail == "none":
all_channels = []
for channels in original_cats.values():
all_channels.extend(channels)
result["categories"] = {"All": all_channels}
That All category is then passed to _make_group_name(), which combines it with the configured prefix:
if prefix:
if prefix[-1] in ":_-/ ":
return f"{prefix}{category}"
return f"{prefix}: {category}"
This appears to be why Spectrum becomes Spectrum: All. Since the UI specifically describes the None option as "prefix only, no categories", it seems the synthetic All category should not be included in the final group name. Happy to fork and open a PR for this if you want.
Describe the bug
When Category Detail is set to None - single group (prefix only, no categories), Lineuparr still appends All to the configured Channel Group Prefix.
For example, with the Channel Group Prefix set to Spectrum, the resulting Dispatcharr channel group is created as:
Spectrum: All
Based on the setting description, I would expect the group to simply be named:
Spectrum
To Reproduce
Steps to reproduce the behavior:
Open the Lineuparr plugin settings.
Set Channel Group Prefix to Spectrum.
Set Category Detail to None - single group (prefix only, no categories).
Save the settings.
Run the Lineuparr channel sync/full sync.
Check the resulting channel group in Dispatcharr.
The group is created as Spectrum: All instead of Spectrum.
Expected behavior
When Category Detail is set to None - single group (prefix only, no categories), the resulting group should use only the configured prefix.
For example:
Spectrum
rather than:
Spectrum: All
The other Category Detail modes could still create category-specific groups such as Spectrum: Movies, Spectrum: Sports, etc.
Screenshots
Screenshot attached showing:
Channel Group Prefix: Spectrum
Category Detail: None - single group (prefix only, no categories)
Resulting Dispatcharr group: Spectrum: All
Desktop (please complete the following information):
OS: Windows
Browser: Chrome
Lineuparr: current plugin version
Dispatcharr: 0.31.0
Smartphone (please complete the following information):
N/A
Additional context
Looking at the plugin code, Category Detail = none appears to collapse all channels into a synthetic All category:
if detail == "none":
all_channels = []
for channels in original_cats.values():
all_channels.extend(channels)
result["categories"] = {"All": all_channels}
That All category is then passed to _make_group_name(), which combines it with the configured prefix:
if prefix:
if prefix[-1] in ":_-/ ":
return f"{prefix}{category}"
return f"{prefix}: {category}"
This appears to be why Spectrum becomes Spectrum: All. Since the UI specifically describes the None option as "prefix only, no categories", it seems the synthetic All category should not be included in the final group name. Happy to fork and open a PR for this if you want.