webtv: add prefered quality option for use in webtv plugins

Origin commit data
------------------
Commit: 92b69d621b
Author: Jacek Jendrzej <overx300@gmail.com>
Date: 2021-09-19 (Sun, 19 Sep 2021)
This commit is contained in:
Jacek Jendrzej
2021-09-19 13:18:08 +02:00
committed by vanhofen
parent 160245e680
commit b40d39edd4
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);
@@ -1990,6 +1991,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)