mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-09-01 01:41:23 +02:00
read logo marker in m3u files
Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
@@ -953,10 +953,11 @@ void CBouquetManager::loadWebchannels(int mode)
|
|||||||
{
|
{
|
||||||
std::ifstream infile;
|
std::ifstream infile;
|
||||||
char cLine[1024];
|
char cLine[1024];
|
||||||
std::string desc;
|
std::string desc = "";
|
||||||
std::string title = "";
|
std::string title = "";
|
||||||
std::string group = "";
|
std::string group = "";
|
||||||
std::string epgid = "";
|
std::string epgid = "";
|
||||||
|
std::string alogo = "";
|
||||||
CZapitBouquet* pbouquet = NULL;
|
CZapitBouquet* pbouquet = NULL;
|
||||||
|
|
||||||
infile.open(tmp_name.c_str(), std::ifstream::in);
|
infile.open(tmp_name.c_str(), std::ifstream::in);
|
||||||
@@ -982,6 +983,7 @@ void CBouquetManager::loadWebchannels(int mode)
|
|||||||
title = "";
|
title = "";
|
||||||
group = "";
|
group = "";
|
||||||
desc = "";
|
desc = "";
|
||||||
|
alogo = "";
|
||||||
|
|
||||||
if (iColon >= 0 && iComma >= 0 && iComma > iColon)
|
if (iColon >= 0 && iComma >= 0 && iComma > iColon)
|
||||||
{
|
{
|
||||||
@@ -992,6 +994,7 @@ void CBouquetManager::loadWebchannels(int mode)
|
|||||||
desc = ReadMarkerValue(strInfoLine, TVG_INFO_NAME_MARKER);
|
desc = ReadMarkerValue(strInfoLine, TVG_INFO_NAME_MARKER);
|
||||||
group = ReadMarkerValue(strInfoLine, GROUP_NAME_MARKER);
|
group = ReadMarkerValue(strInfoLine, GROUP_NAME_MARKER);
|
||||||
epgid = ReadMarkerValue(strInfoLine, TVG_INFO_ID_MARKER);
|
epgid = ReadMarkerValue(strInfoLine, TVG_INFO_ID_MARKER);
|
||||||
|
alogo = ReadMarkerValue(strInfoLine, TVG_INFO_LOGO_MARKER);
|
||||||
}
|
}
|
||||||
|
|
||||||
pbouquet = addBouquetIfNotExist((mode == MODE_WEBTV) ? "WebTV" : "WebRadio");
|
pbouquet = addBouquetIfNotExist((mode == MODE_WEBTV) ? "WebTV" : "WebRadio");
|
||||||
@@ -1033,6 +1036,8 @@ void CBouquetManager::loadWebchannels(int mode)
|
|||||||
}
|
}
|
||||||
CZapitChannel * channel = new CZapitChannel(title.c_str(), chid, url, desc.c_str(), chid, epg_script.c_str(), mode);
|
CZapitChannel * channel = new CZapitChannel(title.c_str(), chid, url, desc.c_str(), chid, epg_script.c_str(), mode);
|
||||||
CServiceManager::getInstance()->AddChannel(channel);
|
CServiceManager::getInstance()->AddChannel(channel);
|
||||||
|
if (!alogo.empty())
|
||||||
|
channel->setAlternateLogo(dlTmpName(alogo));
|
||||||
channel->flags = CZapitChannel::UPDATED;
|
channel->flags = CZapitChannel::UPDATED;
|
||||||
if (gbouquet)
|
if (gbouquet)
|
||||||
gbouquet->addService(channel);
|
gbouquet->addService(channel);
|
||||||
|
Reference in New Issue
Block a user