webtv: add prefered quality option for use in webtv plugins

This commit is contained in:
Jacek Jendrzej
2021-09-19 13:18:08 +02:00
parent e17ef5625c
commit 11d1a2f979
7 changed files with 35 additions and 0 deletions

View File

@@ -896,6 +896,7 @@ int CNeutrinoApp::loadSetup(const char *fname)
g_settings.widget_fade = configfile.getBool("widget_fade", false);
// webtv
g_settings.webtv_xml_quality = configfile.getInt32("webtv_xml_quality", 1280);
g_settings.webtv_xml_auto = configfile.getInt32("webtv_xml_auto", 1);
g_settings.webtv_xml.clear();
int webtv_count = configfile.getInt32("webtv_xml_count", 0);
@@ -1944,6 +1945,7 @@ void CNeutrinoApp::saveSetup(const char *fname)
// webtv
CWebChannelsSetup webchannelssetup;
configfile.setInt32("webtv_xml_quality", g_settings.webtv_xml_quality);
configfile.setInt32("webtv_xml_auto", g_settings.webtv_xml_auto);
int webtv_count = 0;
for (std::list<std::string>::iterator it = g_settings.webtv_xml.begin(); it != g_settings.webtv_xml.end(); ++it)