zapit/src/bouquets.cpp: set epgid for webtv channels

Origin commit data
------------------
Branch: ni/coolstream
Commit: 15b212a939
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2015-06-02 (Tue, 02 Jun 2015)


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

------------------
This commit was generated by Migit
This commit is contained in:
[CST] Focus
2015-06-02 15:16:12 +03:00
parent bad5e20ef8
commit d944fba9a4

View File

@@ -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)