mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-09-02 18:31:22 +02:00
- webradio-setup/controlapi: get webradio via xmltv
Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
@@ -141,7 +141,9 @@ int CWebTVSetup::exec(CMenuTarget *parent, const std::string &actionKey)
|
||||
{
|
||||
std::string tpl = "http://xxx.xxx.xxx.xxx/control/xmltv.m3u";
|
||||
if (webradio)
|
||||
tpl.clear(); // no template for webradio yet
|
||||
tpl += "?mode=radio";
|
||||
else
|
||||
tpl += "?mode=tv";
|
||||
std::string entry = tpl;
|
||||
|
||||
CKeyboardInput *e = new CKeyboardInput(LOCALE_WEBTV_XML_ENTER, &entry, 50);
|
||||
@@ -166,6 +168,10 @@ int CWebTVSetup::exec(CMenuTarget *parent, const std::string &actionKey)
|
||||
chooserDir(g_settings.livestreamScriptPath, false, action_str);
|
||||
return res;
|
||||
}
|
||||
if (actionKey == "webtv_menu")
|
||||
{
|
||||
webradio = false;
|
||||
}
|
||||
if (actionKey == "webradio_menu")
|
||||
{
|
||||
webradio = true;
|
||||
|
Reference in New Issue
Block a user