Feature #4366

Create bouquet for all network types / per network (was: map all services through json api...)

Added by edit4ever ! 2 months ago. Updated 2 months ago.

Status:FixedStart date:2017-05-11
Priority:NormalDue date:
Assignee:-% Done:

100%

Category:API
Target version:4.2

Description

The ability to start the map all services function was removed from the json api.

In the USA - we need a simple way to scan muxes (which does exist in the json api) and then have the new services automatically mapped to channels. With all of our ATSC 3.0 changes coming, stations are going to be changing frequencies. I would like to trigger this from my frontend without having to go through the web interface.

Could this "start" function for the mapping services api be put back in?? If not - what is the method to map services through the current json api options?

Associated revisions

Revision e76171c5
Added by Jaroslav Kysela 2 months ago

mpegts network: create network bouquet for all mpegts networks, fixes #4366

History

#1 Updated by Jaroslav Kysela 2 months ago

  • Target version set to 4.2

Check the webui - you may send the service uuid list to the /api/service/mapper/load .

Anyway, it may be better to manage a bouquet of all services in network. Then users may enable the automatic service mapping through the bouquets. I'll work on it.

#3 Updated by Jaroslav Kysela 2 months ago

Sorry, it should be:

http://localhost:9981/api/service/mapper/save

JSON parameters:

node:{"services":["cb86b1f9fd5244f522b4792050f34773","501419945e4058bf11b5756491ed5f16"],"encrypted":true,"merge_same_name":false,"check_availability":false,"type_tags":true,"provider_tags":false,"network_tags":false}

You can use any browser's debugger (network view) to check which values the webui sends to tvh.

#4 Updated by Jaroslav Kysela 2 months ago

  • Status changed from New to Fixed
  • % Done changed from 0 to 100

#5 Updated by Jaroslav Kysela 2 months ago

You can (since v4.3-60-ge76171c) create a bouquet per network now. It means that if you check 'Create bouquet' flag in the network settings, you can configure the auto channel mapping inside the created bouquet for your whole network. No external tool is required now.

#6 Updated by Jaroslav Kysela 2 months ago

  • Subject changed from Map all services through json api... to Create bouquet for all network types / per network (was: map all services through json api...)

#7 Updated by edit4ever ! 2 months ago

Awesome - thanks for this. I will test the new create bouquet feature.

Also - thank you for the tip on the debugging web ui. Now I can build out the rest of a kodi interface for basic setup of tvh!

#8 Updated by Jaroslav Kysela 2 months ago

@edit4ever : Don't use http requests for the kodi. All /api http requests are available through the htsp protocol / session, too. Just use "args" (map) and "path" (string) for the "api" method. The result is same htsmsg structure as json result for http calls.

Also available in: Atom PDF