diff --git a/src/driver/glcd/glcd.cpp b/src/driver/glcd/glcd.cpp index d5eb9d389..8dcc118d1 100644 --- a/src/driver/glcd/glcd.cpp +++ b/src/driver/glcd/glcd.cpp @@ -32,6 +32,7 @@ #include #include #include +#include #include #include #include @@ -1158,6 +1159,25 @@ void cGLCD::Run(void) snprintf(tmp_end, sizeof(tmp_end), "%02d:%02d", tm->tm_hour, tm->tm_min); End = stagingEnd = tmp_end; } + + if (Epg.empty() && (CNeutrinoApp::getInstance()->getMode() == NeutrinoModes::mode_webtv || CNeutrinoApp::getInstance()->getMode() == NeutrinoModes::mode_webradio)) + { + g_InfoViewer->get_livestreamInfo(); + if (g_InfoViewer->get_livestreamInfo1() == "RESOLUTION=1x1") // comes from best_bitrate_m3u8.lua + Epg = g_InfoViewer->get_livestreamInfo2(); + else + Epg = g_InfoViewer->get_livestreamInfo1() + " " + g_InfoViewer->get_livestreamInfo2(); + EpgWidth = font_epg.Width(Epg); + doScrollEpg = EpgWidth > bitmap->Width(); + scrollEpgForward = true; + scrollEpgSkip = 0; + if (doScrollEpg) + { + scrollEpgOffset = bitmap->Width()/4; + EpgWidth += scrollEpgOffset; + } else + scrollEpgOffset = 0; + } } }