avoid segfault with saved tvg-id

Origin commit data
------------------
Branch: ni/coolstream
Commit: b14124bf26
Author: TangoCash <eric@loxat.de>
Date: 2018-08-19 (Sun, 19 Aug 2018)


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

------------------
This commit was generated by Migit
This commit is contained in:
TangoCash
2018-08-19 21:14:54 +02:00
committed by vanhofen
parent 78438df646
commit 1b2d96111e

View File

@@ -1102,6 +1102,13 @@ bool CMoviePlayerGui::getLiveUrl(const std::string &url, const std::string &scri
realUrl = url; realUrl = url;
return true; return true;
} }
//saved tvg-id for epg
if (script[0] == '#') {
realUrl = url;
return true;
}
std::string _script = script; std::string _script = script;
if (_script.find("/") == std::string::npos) if (_script.find("/") == std::string::npos)