From d944fba9a40cd134f543dc13e71a4a2cc56dbf2d Mon Sep 17 00:00:00 2001 From: "[CST] Focus" Date: Tue, 2 Jun 2015 15:16:12 +0300 Subject: [PATCH] zapit/src/bouquets.cpp: set epgid for webtv channels Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/15b212a939a95ffed9c1b941eb688735906bc2f4 Author: [CST] Focus Date: 2015-06-02 (Tue, 02 Jun 2015) ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- src/zapit/src/bouquets.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/zapit/src/bouquets.cpp b/src/zapit/src/bouquets.cpp index dba58fd0f..6c438c4b5 100644 --- a/src/zapit/src/bouquets.cpp +++ b/src/zapit/src/bouquets.cpp @@ -820,6 +820,10 @@ void CBouquetManager::loadWebtv() const char *url = xmlGetAttribute(l1, "url"); const char *desc = xmlGetAttribute(l1, "description"); const char *genre = xmlGetAttribute(l1, "genre"); + const char *epgid = xmlGetAttribute(l1, "epgid"); + t_channel_id epg_id = 0; + if (epgid) + epg_id = strtoull(epgid, NULL, 16); CZapitBouquet* gbouquet = pbouquet; if (genre) { @@ -829,7 +833,7 @@ void CBouquetManager::loadWebtv() } if (title && url) { t_channel_id chid = create_channel_id64(0, 0, 0, 0, 0, url); - CZapitChannel * channel = new CZapitChannel(title, chid, url, desc); + CZapitChannel * channel = new CZapitChannel(title, chid, url, desc, epg_id); CServiceManager::getInstance()->AddChannel(channel); channel->flags = CZapitChannel::UPDATED; if (gbouquet)