- webtv-setup: disable possibility to setup livestreamScriptPath ...

Movieplayer searches automatically in default-directories for scripts

Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
svenhoefer
2018-11-22 23:42:33 +01:00
committed by Thilo Graf
parent 9b66d96c0c
commit b1587464bb
2 changed files with 4 additions and 3 deletions

View File

@@ -1116,6 +1116,7 @@ bool CMoviePlayerGui::getLiveUrl(const std::string &url, const std::string &scri
{ {
std::list<std::string> paths; std::list<std::string> paths;
// try livestreamScript from user's livestreamScriptPath // try livestreamScript from user's livestreamScriptPath
// Note: livestreamScriptPath is disabled in webtv-setup; just here for compatibility
paths.push_back(g_settings.livestreamScriptPath); paths.push_back(g_settings.livestreamScriptPath);
// try livestreamScripts from webradio/webtv autoload directories // try livestreamScripts from webradio/webtv autoload directories
if (m_ThisMode == NeutrinoModes::mode_webradio) if (m_ThisMode == NeutrinoModes::mode_webradio)

View File

@@ -190,7 +190,7 @@ int CWebTVSetup::Show()
m->addKey(CRCInput::RC_yellow, this, "e"); m->addKey(CRCInput::RC_yellow, this, "e");
m->addKey(CRCInput::RC_blue, this, "r"); m->addKey(CRCInput::RC_blue, this, "r");
m->addIntroItems(webradio ? LOCALE_WEBRADIO_HEAD : LOCALE_WEBTV_HEAD, LOCALE_LIVESTREAM_HEAD); m->addIntroItems(webradio ? LOCALE_WEBRADIO_HEAD : LOCALE_WEBTV_HEAD);
bool _mode_webtv = (CNeutrinoApp::getInstance()->getMode() == NeutrinoModes::mode_webtv) && bool _mode_webtv = (CNeutrinoApp::getInstance()->getMode() == NeutrinoModes::mode_webtv) &&
(!CZapit::getInstance()->GetCurrentChannel()->getScriptName().empty()); (!CZapit::getInstance()->GetCurrentChannel()->getScriptName().empty());
@@ -200,14 +200,14 @@ int CWebTVSetup::Show()
CMenuForwarder *mf; CMenuForwarder *mf;
int shortcut = 1; int shortcut = 1;
#if 0
mf = new CMenuForwarder(LOCALE_LIVESTREAM_SCRIPTPATH, !_mode_webtv || !_mode_webradio, g_settings.livestreamScriptPath, this, "script_path", CRCInput::convertDigitToKey(shortcut++)); mf = new CMenuForwarder(LOCALE_LIVESTREAM_SCRIPTPATH, !_mode_webtv || !_mode_webradio, g_settings.livestreamScriptPath, this, "script_path", CRCInput::convertDigitToKey(shortcut++));
m->addItem(mf); m->addItem(mf);
#if 0
mf = new CMenuForwarder(LOCALE_LIVESTREAM_RESOLUTION, _mode_webtv, NULL, new CWebTVResolution(), NULL, CRCInput::convertDigitToKey(shortcut++)); mf = new CMenuForwarder(LOCALE_LIVESTREAM_RESOLUTION, _mode_webtv, NULL, new CWebTVResolution(), NULL, CRCInput::convertDigitToKey(shortcut++));
m->addItem(mf); m->addItem(mf);
#endif
m->addItem(new CMenuSeparator(CMenuSeparator::LINE | CMenuSeparator::STRING, webradio ? LOCALE_WEBRADIO_XML : LOCALE_WEBTV_XML)); m->addItem(new CMenuSeparator(CMenuSeparator::LINE | CMenuSeparator::STRING, webradio ? LOCALE_WEBRADIO_XML : LOCALE_WEBTV_XML));
#endif
// TODO: show/hide autoloaded content when switching g_settings.webradio/webtv_xml_auto // TODO: show/hide autoloaded content when switching g_settings.webradio/webtv_xml_auto
CMenuOptionChooser *oc; CMenuOptionChooser *oc;