lcd4l: fix eventinfo for webtv/radio

commit based upon c1a45defc6


Origin commit data
------------------
Branch: ni/coolstream
Commit: 5fc395712b
Author: vanhofen <vanhofen@gmx.de>
Date: 2021-09-11 (Sat, 11 Sep 2021)

Origin message was:
------------------
- lcd4l: fix eventinfo for webtv/radio

commit based upon c1a45defc6


------------------
This commit was generated by Migit
This commit is contained in:
vanhofen
2021-09-11 21:24:36 +02:00
parent 1be753cb5a
commit 584c9c81e0
2 changed files with 15 additions and 6 deletions

View File

@@ -878,6 +878,20 @@ void CLCD4l::ParseInfo(uint64_t parseID, bool newID, bool firstRun)
if (m_ModeChannel)
{
if (CNeutrinoApp::getInstance()->getMode() == NeutrinoModes::mode_webtv || CNeutrinoApp::getInstance()->getMode() == NeutrinoModes::mode_webradio)
{
// FIXME: Doesn't work with timing.infobar_tv/radio=0
if (g_InfoViewer->get_livestreamInfo1() == "RESOLUTION=1x1") // comes from best_bitrate_m3u8.lua
{
Event = g_InfoViewer->get_livestreamInfo2();
}
else
{
Event = g_InfoViewer->get_livestreamInfo1();
Event += "\n" + g_InfoViewer->get_livestreamInfo2();
}
}
t_channel_id channel_id = parseID & 0xFFFFFFFFFFFFULL;
CZapitChannel *channel = CZapit::getInstance()->GetCurrentChannel();
@@ -927,12 +941,6 @@ void CLCD4l::ParseInfo(uint64_t parseID, bool newID, bool firstRun)
tm_struct = localtime(&next_start_time);
snprintf(End, sizeof(End), "%02d:%02d", tm_struct->tm_hour, tm_struct->tm_min);
}
if (CNeutrinoApp::getInstance()->getMode() == NeutrinoModes::mode_webtv || CNeutrinoApp::getInstance()->getMode() == NeutrinoModes::mode_webradio)
{
// FIXME: Doesn't work with timing.infobar_tv/radio=0
Event = g_InfoViewer->get_livestreamInfo1();
}
}
else if (parseID == NeutrinoModes::mode_audio)
{