mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-30 17:01:08 +02:00
zapit/src/bouquets.cpp: set epgid for webtv channels
Origin commit data
------------------
Commit: 15b212a939
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2015-06-02 (Tue, 02 Jun 2015)
This commit is contained in:
@@ -820,6 +820,10 @@ void CBouquetManager::loadWebtv()
|
|||||||
const char *url = xmlGetAttribute(l1, "url");
|
const char *url = xmlGetAttribute(l1, "url");
|
||||||
const char *desc = xmlGetAttribute(l1, "description");
|
const char *desc = xmlGetAttribute(l1, "description");
|
||||||
const char *genre = xmlGetAttribute(l1, "genre");
|
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;
|
CZapitBouquet* gbouquet = pbouquet;
|
||||||
if (genre) {
|
if (genre) {
|
||||||
@@ -829,7 +833,7 @@ void CBouquetManager::loadWebtv()
|
|||||||
}
|
}
|
||||||
if (title && url) {
|
if (title && url) {
|
||||||
t_channel_id chid = create_channel_id64(0, 0, 0, 0, 0, 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);
|
CServiceManager::getInstance()->AddChannel(channel);
|
||||||
channel->flags = CZapitChannel::UPDATED;
|
channel->flags = CZapitChannel::UPDATED;
|
||||||
if (gbouquet)
|
if (gbouquet)
|
||||||
|
Reference in New Issue
Block a user