- infoviewer: an addition to 14dcdc36e3

Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
vanhofen
2023-04-12 23:13:55 +02:00
committed by Thilo Graf
parent b4bf491a46
commit ebd24e73f9
3 changed files with 3 additions and 3 deletions

View File

@@ -1147,7 +1147,7 @@ void cGLCD::Run(void)
if (Epg.empty() && (CNeutrinoApp::getInstance()->getMode() == NeutrinoModes::mode_webtv || CNeutrinoApp::getInstance()->getMode() == NeutrinoModes::mode_webradio)) if (Epg.empty() && (CNeutrinoApp::getInstance()->getMode() == NeutrinoModes::mode_webtv || CNeutrinoApp::getInstance()->getMode() == NeutrinoModes::mode_webradio))
{ {
g_InfoViewer->get_livestreamInfo(); g_InfoViewer->init_livestreamInfo();
if (g_InfoViewer->get_livestreamInfo1() == "RESOLUTION=1x1") // comes from best_bitrate_m3u8.lua if (g_InfoViewer->get_livestreamInfo1() == "RESOLUTION=1x1") // comes from best_bitrate_m3u8.lua
Epg = g_InfoViewer->get_livestreamInfo2(); Epg = g_InfoViewer->get_livestreamInfo2();
else else

View File

@@ -980,7 +980,7 @@ void CLCD4l::ParseInfo(uint64_t parseID, bool newID, bool firstRun)
{ {
if (CNeutrinoApp::getInstance()->getMode() == NeutrinoModes::mode_webtv || CNeutrinoApp::getInstance()->getMode() == NeutrinoModes::mode_webradio) if (CNeutrinoApp::getInstance()->getMode() == NeutrinoModes::mode_webtv || CNeutrinoApp::getInstance()->getMode() == NeutrinoModes::mode_webradio)
{ {
g_InfoViewer->get_livestreamInfo(); g_InfoViewer->init_livestreamInfo();
if (g_InfoViewer->get_livestreamInfo1() == "RESOLUTION=1x1") // comes from best_bitrate_m3u8.lua if (g_InfoViewer->get_livestreamInfo1() == "RESOLUTION=1x1") // comes from best_bitrate_m3u8.lua
{ {
Event = g_InfoViewer->get_livestreamInfo2(); Event = g_InfoViewer->get_livestreamInfo2();

View File

@@ -206,7 +206,7 @@ class CInfoViewer : public sigc::trackable
int getSwitchMode() {return zap_mode;} int getSwitchMode() {return zap_mode;}
void resetSwitchMode() {setSwitchMode(IV_MODE_DEFAULT);} void resetSwitchMode() {setSwitchMode(IV_MODE_DEFAULT);}
void get_livestreamInfo() { initLiveStreamInfo(); } void init_livestreamInfo() { initLiveStreamInfo(); }
std::string get_livestreamInfo1() { return _livestreamInfo1; } std::string get_livestreamInfo1() { return _livestreamInfo1; }
std::string get_livestreamInfo2() { return _livestreamInfo2; } std::string get_livestreamInfo2() { return _livestreamInfo2; }