mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-29 16:31:11 +02:00
fix webtv script path
This commit is contained in:
@@ -1108,7 +1108,6 @@ bool CMoviePlayerGui::getLiveUrl(const std::string &url, const std::string &scri
|
|||||||
}
|
}
|
||||||
std::string _script = script;
|
std::string _script = script;
|
||||||
|
|
||||||
#if 0
|
|
||||||
if (_script.find("/") == std::string::npos)
|
if (_script.find("/") == std::string::npos)
|
||||||
{
|
{
|
||||||
std::string _s = g_settings.livestreamScriptPath + "/" + _script;
|
std::string _s = g_settings.livestreamScriptPath + "/" + _script;
|
||||||
@@ -1125,7 +1124,6 @@ bool CMoviePlayerGui::getLiveUrl(const std::string &url, const std::string &scri
|
|||||||
}
|
}
|
||||||
_script = _s;
|
_script = _s;
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
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