mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-28 16:01:20 +02:00
- bouquets: allow logos directly from webtv xml file
Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
@@ -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);
|
||||||
|
Reference in New Issue
Block a user