mirror of
https://github.com/chrisbenincasa/tunarr.git
synced 2026-04-18 09:03:35 -04:00
This change begins the concept of creating schedules based on existing programming tools using the slot schedulers. The first of these is recreating "cyclic shuffle" + "tweak weights" functionality directly in the random slot scheduler. To do this, the following functionality was added to the random slot scheduler: 1. Ability to create slots based on absolute # of programs per slot, rather than a fixed duration 2. A new program orderer called "ordered shuffle". This is effectively the "cyclic shuffle' functionality. Namely, chronological (or index based for custom shows) ordering with a random start point The concept is called "presets" - this allows users to generate a schedule that would normally require tinkering with program tools. The idea is to bake in various "presets" based on these existing tools, plus other convenience functions, to ease channel creation.
12 lines
480 B
TypeScript
12 lines
480 B
TypeScript
// Duplicated from server - reference these instead.
|
|
// export const currentEnv = once(() => {
|
|
// const env = process.env['NODE_ENV'];
|
|
// return env ?? 'production';
|
|
// });
|
|
|
|
// export const isProduction = currentEnv() === 'production';
|
|
// export const isDev = currentEnv() === 'development';
|
|
// export const isTest = currentEnv() === 'test';
|
|
// export const isEdgeBuild = process.env['TUNARR_EDGE_BUILD'] === 'true';
|
|
// export const tunarrBuild = process.env['TUNARR_BUILD'];
|