Skip to content

Category Detail "None" creates "<prefix>: All" instead of prefix-only group #30

Description

@sbcrumb

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:

Image Image

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions