movieplayer: just fix indentation

Origin commit data
------------------
Branch: ni/coolstream
Commit: c64b184505
Author: vanhofen <vanhofen@gmx.de>
Date: 2017-11-24 (Fri, 24 Nov 2017)

Origin message was:
------------------
- movieplayer: just fix indentation

------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
vanhofen
2017-11-24 10:54:30 +01:00
parent c1177bc2db
commit 96cb0c2785

View File

@@ -1151,23 +1151,21 @@ bool CMoviePlayerGui::getLiveUrl(const std::string &url, const std::string &scri
std::string _script = script;
if (_script.find("/") == std::string::npos)
//NI
{
std::string _s = g_settings.livestreamScriptPath + "/" + _script;
printf("[%s:%s:%d] script: %s\n", __file__, __func__, __LINE__, _s.c_str());
if (!file_exists(_s.c_str()))
{
std::string _s = g_settings.livestreamScriptPath + "/" + _script;
_s = std::string(WEBTVDIR_VAR) + "/" + _script;
printf("[%s:%s:%d] script: %s\n", __file__, __func__, __LINE__, _s.c_str());
if (!file_exists(_s.c_str()))
{
_s = std::string(WEBTVDIR_VAR) + "/" + _script;
printf("[%s:%s:%d] script: %s\n", __file__, __func__, __LINE__, _s.c_str());
}
if (!file_exists(_s.c_str()))
{
_s = std::string(WEBTVDIR) + "/" + _script;
printf("[%s:%s:%d] script: %s\n", __file__, __func__, __LINE__, _s.c_str());
}
_script = _s;
}
if (!file_exists(_s.c_str()))
{
_s = std::string(WEBTVDIR) + "/" + _script;
printf("[%s:%s:%d] script: %s\n", __file__, __func__, __LINE__, _s.c_str());
}
_script = _s;
}
size_t pos = _script.find(".lua");
if (!file_exists(_script.c_str()) || (pos == std::string::npos) || (_script.length()-pos != 4)) {
printf(">>>>> [%s:%s:%d] script error\n", __file__, __func__, __LINE__);