Scanning channels by command

Added by Karol Dabrowski over 1 year ago

Hi Everyone,

I need initialize scanning channels by command line e.g. by curl command or something like that.

Please help


Replies (4)

RE: Scanning channels by command - Added by Reinier Millo Sánchez 9 months ago

Hi Karol

Do you have solved it? I'm trying to do the adding muxes, scanning channels and mapping services from the Kodi UI interface.

Best regards

RE: Scanning channels by command - Added by edit4ever ! 7 months ago

You can initiate a scan using the json api - http://server_ip:9981/api/mpegts/network/scan?uuid=xxxxxxx

Just replace the xxxxxxx with the uuid of the network you want to scan.

I have a working version of this in a kodi addon....but tvheadend removed the ability to automatically map all services from the json api. So I can start mix scan, new services are found and created - but I can't map the services to a channel. It looks like there should be a way to create the channels through the json api, but I'm unsure of the format or parameters that have to be sent to get it to work.

Hopefully we can convince them to put the map all services start api back in.

RE: Scanning channels by command - Added by Reinier Millo Sánchez 7 months ago

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

RE: Scanning channels by command - Added by edit4ever ! 7 months ago

Thank you for the update...

Do you have a repo or github where you could share the project?

(1-4/4)