Hi edit4ever
When I started working on this I check the URLs from the API, but I was looking some interface more simple to Kodi. Using the same HTS protocol, i have implemented a mechanism that create the network (always with the same UUID if it don't exists) and create the muxes automatically for each frequency that i'm scanning. When it found a services, it maps the service after the scan finished. This mechanism is transparent to Kodi, Kodi only needs give the frequency to scan.
I have implemented it specifically for digital television in my country, but it can be generalized. Now i'm finishing the integration with the interface of Kodi 17 to upload it to the community (Tvheadend + pvr.hts).
Thanks for your answer, best regards