mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-02 18:31:12 +02:00
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:
@@ -1151,23 +1151,21 @@ bool CMoviePlayerGui::getLiveUrl(const std::string &url, const std::string &scri
|
|||||||
std::string _script = script;
|
std::string _script = script;
|
||||||
|
|
||||||
if (_script.find("/") == std::string::npos)
|
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());
|
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");
|
size_t pos = _script.find(".lua");
|
||||||
if (!file_exists(_script.c_str()) || (pos == std::string::npos) || (_script.length()-pos != 4)) {
|
if (!file_exists(_script.c_str()) || (pos == std::string::npos) || (_script.length()-pos != 4)) {
|
||||||
printf(">>>>> [%s:%s:%d] script error\n", __file__, __func__, __LINE__);
|
printf(">>>>> [%s:%s:%d] script error\n", __file__, __func__, __LINE__);
|
||||||
|
Reference in New Issue
Block a user