INTERACT FORUM

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1]   Go Down

Author Topic: MCWS GetRecordingScheduleXML defaults to one week  (Read 1025 times)

avid

  • Regular Member
  • World Citizen
  • ***
  • Posts: 180
  • MC user since 2003
MCWS GetRecordingScheduleXML defaults to one week
« on: December 12, 2023, 11:28:21 am »

I tracked down a bug in my system to an unexpected default value in MCWS Television/GetRecordingScheduleXML.

The live generated documentation says:
Code: [Select]
RangeInHours: The number of hours of schedules to report starting from current hour. (default: -1)
This implies that all scheduled recordings will be returned, no matter how far in the future. It now appears that this value defaults to 168 (one week). I wanted two weeks (over the Christmas TV season) and I could not see all the recordings I had set. In my debugging, I actually assumed that the bug was in Television/SetRecording. But eventually I realised that this other call had worked.

For my preferred use, I need to pass RangeInHours=336. And that works just fine.

So ... Either the default should be to return all scheduled recordings as the doc implies. OR the doc should show the correct default value.
Logged

Yaobing

  • Administrator
  • Citizen of the Universe
  • *****
  • Posts: 10926
  • Dogs of the world unite!
Re: MCWS GetRecordingScheduleXML defaults to one week
« Reply #1 on: December 12, 2023, 01:59:07 pm »

Thanks for reporting this.

I changed it to
Code: [Select]
(default:  "168")For MC32.
Logged
Yaobing Deng, JRiver Media Center
Pages: [1]   Go Up