- bouquets: allow logos directly from webtv xml file

Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
svenhoefer
2021-09-14 22:16:27 +02:00
committed by Thilo Graf
parent f8d3c34307
commit 2fe8c1c87b

View File

@@ -935,6 +935,7 @@ void CBouquetManager::loadWebchannels(int mode)
const char *epgid = xmlGetAttribute(l1, "epgid"); const char *epgid = xmlGetAttribute(l1, "epgid");
const char *xmltv = xmlGetAttribute(l1, "xmltv"); const char *xmltv = xmlGetAttribute(l1, "xmltv");
const char *epgmap = xmlGetAttribute(l1, "epgmap"); const char *epgmap = xmlGetAttribute(l1, "epgmap");
const char *alogo = xmlGetAttribute(l1, "logo");
const char *script = xmlGetAttribute(l1, "script"); const char *script = xmlGetAttribute(l1, "script");
t_channel_id epg_id = 0; t_channel_id epg_id = 0;
if (epgid) if (epgid)
@@ -989,6 +990,15 @@ void CBouquetManager::loadWebchannels(int mode)
if(!new_epgmap.empty()) if(!new_epgmap.empty())
channel->setEPGmap("#" + new_epgmap + "=" + buf); channel->setEPGmap("#" + new_epgmap + "=" + buf);
} }
std::string dummy = "";
if (alogo && !g_PicViewer->GetLogoName(chid, std::string(title), dummy))
{
channel->setAlternateLogo(std::string(alogo));
pthread_mutex_lock (&mutex);
LogoList.push_back(channel);
pthread_mutex_unlock (&mutex);
}
channel->flags = CZapitChannel::UPDATED; channel->flags = CZapitChannel::UPDATED;
if (gbouquet) if (gbouquet)
gbouquet->addService(channel); gbouquet->addService(channel);