Skip to content

Scheduling Concepts

Definitions

  • Lineup: A channel's lineup describes its programming sequence. Channel lineups are looped infinitely and based off of the channel's start time.
  • Programming: A channel's programming refers the actual media in a channel lineup
  • Filler: Filler content refers to media that is used to "round out" a schedule. For instance, a 22-minute television episode may need 8 minutes of "filler" distributed within a 30-minute slot to replicate a true "TV" experience
  • Flex: Flex time refers to chunks of time in which one or more pieces of filler are placed within a channel lineup. Content used to fill periods of flex time are not chosen until stream time.
  • Padding: Padding generally refers to applying flex time in order to have content start at "nice" times, e.g. 12:00, 12:30, etc. These times are on the server's local clock, the same clock that slot start times use.
  • Slot: Tunarr includes programming tools called slot editors. Using slots allows for fine-grained control over channel lineups. A slot refers to a "grouping" of programming with either a set duration or start time.
  • Slot Isolation: By default, every slot is isolated: it maintains its own position in its program list, independent of all other slots. Two slots for the same show will each start at episode 1 and advance separately, which means duplicates are possible unless the slots are linked.
  • Slot Linking: Slots can be linked into an iteration group so they share a single program iterator. This is configured per-slot via the Link control in the slot editor. Linked slots support two link modes:
    • Continue: The shared iterator advances every time any group member plays. Each slot picks up where the last one left off.
    • Rerun: The shared iterator advances only after every group member has played the current item. All members see the same episode until the whole group has consumed it.
  • Filler Types: When using slot editors, filler can be configured per-slot and be one of several types, each of which behave differently.

    • Head: Filler that plays at the beginning of each slot
    • Pre: Filler that plays before each program within a slot
    • Post: Filler that plays after each program within a slot
    • Tail: Filler that plays at the end of each slot
    • Mid: Filler that plays during mid-roll breaks inserted within a program
    • Fallback: Filler that is played during flex time in the slot

    Filler is placed inside the slot rather than added on top of it: head, pre, post, and tail filler draw from the slot's unused time, including any padding applied to the programs around them. A slot only omits filler when it has genuinely no time left to give.

    A filler list that has no programs in it is ignored when the schedule is generated: the slot simply gets no filler from that list (and the empty list is noted in the server log). The slot editor marks such lists so they can be spotted before saving.

Rebuild Each Cycle

Without this option, a slot schedule is built once when you save it, then the saved lineup loops forever. The same shuffle repeats each time around, and shows in order start over at the first episode.

Turn on Rebuild each cycle in the Slot Editor or the Time Slots editor to keep building new programming from the schedule instead. New slot schedules have it on by default.

With it on:

  • Tunarr builds the next stretch of programming before the current one runs out, at most a day at a time. The guide always covers at least the EPG (Hours) setting in the XMLTV settings.
  • Shuffled slots get a new order each cycle. In a shuffled slot, every program plays once before any repeats.
  • Ordered shows continue where they left off instead of starting over.
  • Days to Precalculate only sets how much of the schedule the editor previews.
  • Programming Start on the channel's properties page is read-only. The schedule moves it forward as programs air.

Changes to a Rebuilding Channel

Saving the schedule, scanning a library, or removing programs takes effect after the program on air ends. The program on air keeps playing, and each slot you didn't change keeps its place. A slot keeps its place when you move or retime it, but not when you change what it plays, its order, its direction, or its season filters.

When the server starts after being down, the channel continues from where its shows left off. Time slot channels pick up at the start of the current day, and Slot Editor channels pick up right away. Episodes that would have aired while the server was down are not skipped.

Turning It On for an Existing Channel

Turning the option on keeps the program on air and each show's place. Tunarr shows a message when it can't, and the channel's shows start from the beginning instead:

  • The schedule was saved by an older version of Tunarr.
  • The saved lineup no longer matches its schedule.
  • Nothing has aired on the channel yet.

On-demand channels replay their saved lineup, so they can't rebuild. Editing a channel's programming by hand or removing its schedule turns the option off, and the lineup loops as it is.

Removing a Slot Schedule

A channel saved from the Slot Editor or Time Slots editor keeps its schedule. The channel's programming page then shows a notice that manual edits will make the channel drift from that schedule. To return the channel to manual programming, click Remove schedule on that notice. The channel keeps its current programs, and the notice goes away.

Scheduling Movies

Slot editors have no movie slot type. To schedule movies in a slot:

  1. Add the movies to a playlist, in the order you want them to play.
  2. Add a Playlist slot that uses that playlist.

A playlist slot supports filler, mid-roll breaks, and linking.

Upgrading From Movie Slots

Earlier versions had a Movie slot type, which drew from every movie, music video, and other video in the schedule. That pool also picked up commercials from the schedule's filler lists. On upgrade, Tunarr replaces each movie slot with a playlist slot:

  • Tunarr creates a playlist named <Channel> Movies from the channel's saved movies, music videos, and other videos. Programs that the schedule only plays as filler are left out. If the channel's movie slots used different sort orders, Tunarr creates one playlist per order and adds the order to the name: <Channel> Movies (Oldest First), (Newest First), (A-Z), or (Z-A).
  • The show is sorted to match the old slot order. Alphanumeric slots sort by title. Next, chronological, and ordered shuffle slots sort by release date. The old ascending or descending direction is kept.
  • The slot keeps its filler, mid-roll breaks, links, weight, cooldown, and timing.
  • A movie slot with no movies to schedule becomes a flex slot.

The new playlist is a snapshot. Movies added to the channel later are not added to it, so add them to the playlist yourself.