Usage ‐ SLM ‐ Settings: Labels - babsonnexus/stream-link-manager-for-channels GitHub Wiki

Labels are a way to note and manage your content, especially in relation to the same-named function in Channels DVR. For instance, a Movie, TV Show, or Video Group can be assigned these labels:

image

Then, you can create a Library Collection to automatically have content added to it based on those labels.

image

Some use cases might be for a specific home user, some desired type of content, or a combination of both. Using Smart Rules, you can easily set these up.

image

The issue is that while Channels DVR can remember the labels for TV Shows, it cannot do that for other programs, especially Movies. This is quite troublesome for SLM generated content as things like Movies may be added, moved, and removed on a regular basis. This means that every time a Movie is imported, it is considered a "new" item and must have the labels manually reassigned.

This is where the Labels settings in Manage Providers comes into play!

image

Here, you can manually add any label you want that can be assigned to content.

image

However, if you are currently already using labels in Channels DVR, you can import those and all assignments for content that has been generated by SLM into the program.

image

Depending upon the size of your library (both Channels and SLM), this may take several minutes or more. When complete, though, you will then have a list of all the labels that exist in Channels.

image

Of course, you are free to add, delete, or modify these to your heart's content. You can even run the import again if you add another label and/or assignment in Channels and SLM will only pick up the difference.

Now, when you add search or manual content, or modify it after the fact, you will see a button for Labels with the program setting.

image

Clicking this will reveal a panel with all of those labels (assuming there are some).

image

At this juncture, you can check off which ones, if any, you want, always free to adjust later. When you save the program as normal, the labels assignments are also recorded.

Back in Manage Providers, you can also update the name of the label and that will propagate everywhere without affecting the assignments. In other words, if you "misspeel" a label, you can fix it later to "misspell" and all the Movies, TV Shows, and Video Groups that have those labels checked off will automatically be updated. In the logs you might see something like this:

2025-04-28 09:09:19.376554:  INFO: Updating Channels DVR labels...
2025-04-28 09:09:19.722638:  INFO: Deleted label 'User: Robotz' from Iron Man (2008) | MOVIE.
2025-04-28 09:09:19.863841:  INFO: Deleted label 'User: Robotz' from Random Video 1 (2025) | VIDEO.
2025-04-28 09:09:19.878280:  INFO: Deleted label 'User: Robotz' from Iron Man: Armored Adventures (2009) | SHOW.
2025-04-28 09:09:20.002538:  INFO: Added label 'User: Robot' to Iron Man (2008) | MOVIE.
2025-04-28 09:09:20.004721:  INFO: Added label 'User: Robot' to Iron Man: Armored Adventures (2009) | SHOW.
2025-04-28 09:09:20.102250:  INFO: Added label 'User: Robot' to Random Video 1 (2025) | VIDEO.
2025-04-28 09:09:20.104372:  Label assignments complete.

Instead of renaming or deleting, another option is to disable the label by unchecking its Active mark:

image

Now, when you return to the content, you can see that the label is no longer available for selection, even if assigned previously.

image

But worry not for that assignment still exists if you make the label active again. Only deleting a label will remove the assignment automatically.

At any time you can also review the label assignments en masse (including seeing 'No Assigned Labels') by running the report / query for On Demand: Summary:

image

Finally, in order to actually get SLM to assign labels in Channels, the option must be turned on in the Settings area.

image

As warned in the description, only turn this on if you want to have SLM manage labels for Stream Link/File programs. Once this is done and Run Updates in Channels is run (either manually or through automation), SLM will remove any label in Channels DVR that is not assigned within it, so long as there is at least one generated Stream Link/File in there for that program.