fix reload webchannels

Origin commit data
------------------
Branch: ni/coolstream
Commit: 2d5f0643bc
Author: TangoCash <eric@loxat.de>
Date: 2024-06-02 (Sun, 02 Jun 2024)


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

------------------
This commit was generated by Migit
This commit is contained in:
TangoCash
2024-06-02 14:14:58 +02:00
committed by vanhofen
parent 38306a6f00
commit 70fcf212ff
2 changed files with 6 additions and 0 deletions

View File

@@ -303,6 +303,10 @@ int CWebChannelsSetup::Show()
g_settings.webtv_xml = webchannels;
}
webchannels_auto();
if (webradio)
CZapit::getInstance()->SetWebRadioXML(&g_settings.webradio_xml);
else
CZapit::getInstance()->SetWebTVXML(&g_settings.webtv_xml);
g_Zapit->reinitChannels();
CNeutrinoApp::getInstance()->xmltv_xml_auto_readepg();
changed = false;

View File

@@ -304,6 +304,8 @@ class CZapit : public OpenThreads::Thread
void Rezap();
std::list<std::string> *GetWebTVXML(void) { return webtv_xml; }
std::list<std::string> *GetWebRadioXML(void) { return webradio_xml; }
void SetWebTVXML(std::list<std::string> *xml) { webtv_xml = xml; }
void SetWebRadioXML(std::list<std::string> *xml) { webradio_xml = xml; }
bool getUseChannelFilter();
void setMoviePlayer(bool enable);
};