- webradio-setup/controlapi: get webradio via xmltv

Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
svenhoefer
2020-02-14 23:09:26 +01:00
committed by Thilo Graf
parent ae3c9a5248
commit 2ef0caef83
3 changed files with 20 additions and 8 deletions

View File

@@ -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;