mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-30 17:01:08 +02:00
webradio: add possibility to auto-load webradio files
Origin commit data
------------------
Commit: 9b28e96277
Author: vanhofen <vanhofen@gmx.de>
Date: 2018-09-25 (Tue, 25 Sep 2018)
Origin message was:
------------------
- webradio: add possibility to auto-load webradio files
This commit is contained in:
@@ -788,6 +788,7 @@ int CNeutrinoApp::loadSetup(const char * fname)
|
||||
CWebTVSetup webtvsetup;
|
||||
webtvsetup.webtv_xml_auto();
|
||||
|
||||
g_settings.webradio_xml_auto = configfile.getInt32("webradio_xml_auto", 1);
|
||||
g_settings.webradio_xml.clear();
|
||||
#ifndef BOXMODEL_CS_HD1
|
||||
/*
|
||||
@@ -809,6 +810,8 @@ int CNeutrinoApp::loadSetup(const char * fname)
|
||||
if (file_size(webradio_xml.c_str()))
|
||||
g_settings.webradio_xml.push_back(webradio_xml);
|
||||
}
|
||||
|
||||
webtvsetup.webradio_xml_auto();
|
||||
#endif
|
||||
|
||||
g_settings.xmltv_xml.clear();
|
||||
@@ -1596,7 +1599,6 @@ void CNeutrinoApp::saveSetup(const char * fname)
|
||||
int webtv_count = 0;
|
||||
for (std::list<std::string>::iterator it = g_settings.webtv_xml.begin(); it != g_settings.webtv_xml.end(); ++it) {
|
||||
std::string k = "webtv_xml_" + to_string(webtv_count);
|
||||
//NI
|
||||
if (webtvsetup.webtv_xml_autodir((*it)))
|
||||
continue;
|
||||
configfile.setString(k, *it);
|
||||
@@ -1604,9 +1606,12 @@ void CNeutrinoApp::saveSetup(const char * fname)
|
||||
}
|
||||
configfile.setInt32 ( "webtv_xml_count", webtv_count); //NI
|
||||
|
||||
configfile.setInt32("webradio_xml_auto", g_settings.webradio_xml_auto);
|
||||
int webradio_count = 0;
|
||||
for (std::list<std::string>::iterator it = g_settings.webradio_xml.begin(); it != g_settings.webradio_xml.end(); ++it) {
|
||||
std::string k = "webradio_xml_" + to_string(webradio_count);
|
||||
if (webtvsetup.webradio_xml_autodir((*it)))
|
||||
continue;
|
||||
configfile.setString(k, *it);
|
||||
webradio_count++;
|
||||
}
|
||||
|
Reference in New Issue
Block a user