I am using the prerolls feature and doing it by date range, however this also means every year I have to remember to go in and resetup the new dates for the holidays that change and dont have a fixed date. Example:
Mothers Day is always on the Second Sunday in May. Would like to be able to do a formula to make it always work.
Example:
((month(now) == 5) && (weekdayOfMonth(now) == 2) && (dayOfWeek(now) == 1))
Or even Memorial Day (Last Monday of May
Example:
(month(now) == 5 && dayOfWeek(now) == 2 && month(addDays(now, 7)) != 5)
If you could make it so that we could use the current method and the new method mentioned, this would be great and I would never have to edit the file again.
So it would look like this:
MAY change preroll:
build_collection: false
server_preroll: /Media/PreRoll/05-May/May_Preroll.mkv
schedule: range(05/01-05/31)
Mothers Day change preroll:
build_collection: false
server_preroll: /Media/PreRoll/MothersDay/MothersDay_Preroll.mkv
schedule: ((month(now) == 5) && (weekdayOfMonth(now) == 2) && (dayOfWeek(now) == 1))
Memorial Day change preroll:
build_collection: false
server_preroll: /Media/PreRoll/MemorialDay/MemorialDay_Preroll.mkv
schedule: (month(now) == 5 && dayOfWeek(now) == 2 && month(addDays(now, 7)) != 5)