From b1099e70238af72b2a9041a195e51a1efad88d7e Mon Sep 17 00:00:00 2001 From: "[CST] Focus" Date: Fri, 13 Feb 2015 16:15:04 +0300 Subject: [PATCH] zapit/src/bouquets.cpp: fix favorites webtv channels not found in webtv xml files Origin commit data ------------------ Branch: ni/coolstream Commit: https://github.com/neutrino-images/ni-neutrino/commit/63d8c8e90b819d4e4b32a88de478625a40c91b70 Author: [CST] Focus Date: 2015-02-13 (Fri, 13 Feb 2015) ------------------ No further description and justification available within origin commit message! ------------------ This commit was generated by Migit --- src/zapit/src/bouquets.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/zapit/src/bouquets.cpp b/src/zapit/src/bouquets.cpp index 54a826805..81e8e3677 100644 --- a/src/zapit/src/bouquets.cpp +++ b/src/zapit/src/bouquets.cpp @@ -447,8 +447,14 @@ void CBouquetManager::parseBouquetsXml(const char *fname, bool bUser) newBouquet->addService(chan); } else if (bUser) { - chan = new CZapitChannel(name2, CREATE_CHANNEL_ID64, 1 /*service_type*/, - satellitePosition, freq); + if (url) { + chid = create_channel_id64(0, 0, 0, 0, 0, url); + chan = new CZapitChannel(name2.c_str(), chid, url, NULL); + } + else + chan = new CZapitChannel(name2, CREATE_CHANNEL_ID64, 1 /*service_type*/, + satellitePosition, freq); + CServiceManager::getInstance()->AddChannel(chan); chan->flags = CZapitChannel::NOT_FOUND; chan->bLocked = clock;