2019-05-31, 07:54 PM
(This post was last modified: 2019-05-31, 08:17 PM by mvallevand.)
Sub looking at pvr.nextpvr code I was wondering if there was also an "Any Day" dayMask I could use with &day_mask= that Kodi doesn't enable? NUtility does have one.
Also how to I indicate a Timeslot recording just add the start and end timestamps?
Thanks.
Martin
Code:
std::string cPVRClientNextPVR::GetDayString(int dayMask)
{
std::string days;
if (dayMask == (PVR_WEEKDAY_SATURDAY | PVR_WEEKDAY_SUNDAY))
{
days = "WEEKENDS";
}
else if (dayMask == (PVR_WEEKDAY_MONDAY | PVR_WEEKDAY_TUESDAY | PVR_WEEKDAY_WEDNESDAY | PVR_WEEKDAY_THURSDAY | PVR_WEEKDAY_FRIDAY))
{
days = "WEEKDAYS";
}
else
{
if (dayMask & PVR_WEEKDAY_SATURDAY)
days += "SAT:";
if (dayMask & PVR_WEEKDAY_SUNDAY)
days += "SUN:";
if (dayMask & PVR_WEEKDAY_MONDAY)
days += "MON:";
if (dayMask & PVR_WEEKDAY_TUESDAY)
days += "TUE:";
if (dayMask & PVR_WEEKDAY_WEDNESDAY)
days += "WED:";
if (dayMask & PVR_WEEKDAY_THURSDAY)
days += "THU:";
if (dayMask & PVR_WEEKDAY_FRIDAY)
days += "FRI:";
}
return days;
}
Also how to I indicate a Timeslot recording just add the start and end timestamps?
Thanks.
Martin