eit: Add drop-down selection box for eit scraper configuration
Suggested in #4509: currently you have to enter text in the "scraper configuration to use" drop-down on EPG grabber modules/Over the air module. Instead we can populate a drop-down selection box.
eit: Add drop-down list for selecting xmltv scraper configuration. (#4626)
Previously you had to enter text in the "scraper configuration to use"
drop-down on EPG grabber modules/Over the air module.
Now we populate a drop-down selection box by loading the configurations
and then getting their names. This is slight overhead compared to just
fb_scandir, but it is only used briefly during GUI configuration and
has the benefit of listing configurations that are valid in case the
user modified the configuration files and caused it to be invalid.
Updated by Em Smith over 4 years ago
It already uses predefined value if it can.
For example, if you enable "uk_freesat" without any option then it checks for a config file with the name "uk_freesat", if it doesn't exist then it uses the "uk" config file instead. However, the generic dvb grabber needs the user to select a specific config since many people just enable all configs.
Code is available in the pull request.