API reference - vexorian/dizquetv GitHub Wiki

POST /api/channel-tools/time-slots

{
    "programs": <programs that will be used in the time slots>
    "schedule" : <schedule json>
}

Programs object is in the same format as the programs list in the channel json.

Example schedule object:

    "schedule": {
        "lateness": 0,
        "maxDays": 365,
        "slots": [
            {
                "time": 23400000,
                "showId": "tv.Sheep In The Big City",
                "order": "next"
            },
            {
                "time": 54000000,
                "showId": "flex.",
                "order": "next"
            },
            {
                "time": 75600000,
                "showId": "movie.",
                "order": "shuffle"
            },
            {
                "time": 79200000,
                "showId": "flex.",
                "order": "shuffle"
            },
            {
                "time": 80100000,
                "showId": "tv.Looney Tunes",
                "order": "shuffle"
            }
        ],
        "pad": 1,
        "timeZoneOffset": 240
    }

showId for a tv show starts with tv. followed by the show's title. Movies are movie., Redirects are in the format redirect.channelNumber, e.g redirect.3 will redirect to channel 3. Times are milliseconds since the start of a day. timeZoneOffset is in minutes. pad is 1 if all times are allowed, 2 if only even times are allowed. Normally you'd want something like pad = 1800000 so that the allowed times are :00 and :30.