Opendigitalradio / odr-radioepg-bridge

Creates a DAB EPG bitstream directly from the ODR multiplex configuration file, using RadioDNS to lookup SI and PI documents.
Apache License 2.0
0 stars 1 forks source link

Zero services should create a valid [null] SPI #6

Closed nickpiggott closed 1 year ago

nickpiggott commented 1 year ago

If the epg bridge runs and there are zero services providing SPI information via RadioDNS, the process ends with a warning message but without writing an output file.

This has two implications:

Therefore, the process should write a valid SPI file which contains zero services, rather than aborting without writing a file.

nickpiggott commented 1 year ago

The issue is that the multiplex ECC and EID are required, and they're not currently read in from the odr-dabmux configuration file. The code needs to be refactored to read those in from the configuration file and pass them to the generator, rather than relying on copying out the ECC and EID of the first service found.

nickpiggott commented 1 year ago

Fixed - code just committed