Jump to content

API Call LiveTV refresh Guide


alturismo

Recommended Posts

alturismo

Hi,

 

would like to know if there is a direct call for this function or only the way through scheduled task running ?

 

if direct, may a hint which api trigger that would be ...

 

schedules task trigger is working, but ...

 

if only through scheduled task running, is the id always the same ? or generated (my guess ...) ?

 

if generated, may a hint howto fetch it easy ? ;)

 

thanks ahead for a hint

Link to comment
Share on other sites

To kick off a scheduled task using the c# libraries look at the ITaskManager interface.

 

Otherwise, check out ScheduledTaskService in the swagger.

Link to comment
Share on other sites

alturismo

To kick off a scheduled task using the c# libraries look at the ITaskManager interface.

 

Otherwise, check out ScheduledTaskService in the swagger.

 

thanks, the trigger task is clear and working, my question is if there is a direct api call for this function "Refresh Guide" and not the way calling a scheduled task.

 

while talking about the scheduled task, i assume the ID of this task is generated and not static ?

Link to comment
Share on other sites

thanks, the trigger task is clear and working, my question is if there is a direct api call for this function "Refresh Guide" and not the way calling a scheduled task.

 

while talking about the scheduled task, i assume the ID of this task is generated and not static ?

I'm pretty sure they are static because they are written in plugins.

The task id can be found by doing a loop over TaskManager.GetTasks

 

Which is an IEnumerable. Compare the task names and use TaskManager.Execute(task.id)

 

There are quite a few options in the swagger documentation for LiveTvService.

 

So you are using the C# libraries?

Edited by chef
Link to comment
Share on other sites

A quick look through the C# 'interfaces show:

 

 ILiveTvManager , which has functions to populate your guide.

 

I suppose the client would make calls to this manager to request the data.

 

I'm not sure if  the LiveTvManager gets most recent guide data when it's functions are called.

Edited by chef
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...