Remote API default value

TVMosaic live and recorded TV products for Desktop/NAS/Raspbery Pi
Post Reply
skogl
Posts: 2
Joined: Tue Aug 27, 2019 8:27 am

Remote API default value

Post by skogl » Tue Aug 27, 2019 8:44 am

Hi,

I've been using remote api for DVBLink with success for many years. I have adopted this code to TVMosaic remote api without any major issues. The only thing I have came across so far is how default values are set when I use the 'add_schedule' command. In both TVMosaic and DVBLink remote api documentation it says that default values for margine_before/margine_after are used when value -1 is inserted. For DVBLink I have always left these fields unset, since it then uses the default values. When I do the same in TVMosaic, margine_before/margine_after are both set to '0'.

I just want to know if this is an intended behaviour and that I indeed should set the values to -1 or if it's a bug and that leaving the fields unset should work just as good.

Thank you!

/ skogl

skogl
Posts: 2
Joined: Tue Aug 27, 2019 8:27 am

Re: Remote API default value

Post by skogl » Mon Sep 09, 2019 1:16 pm

Got answer from developers that I thought I'd share.

Behaviour has changed with Tvmosaic remote api. A value of -1 is needed to use default margins (before/after). Leaving out the value is translated to a margin value of 0.

/ skogl

Plantje
Posts: 133
Joined: Fri May 11, 2018 6:53 am

Re: Remote API default value

Post by Plantje » Wed Sep 11, 2019 5:21 am

Thanks for sharing! Very important if you want to keep a community alive!

Post Reply