1
0
mirror of https://github.com/fHDHR/fHDHR_NextPVR.git synced 2025-12-06 15:16:58 -05:00

EPG Streams Page Patch

This commit is contained in:
deathbybandaid 2020-11-13 08:23:35 -05:00
parent 890cf7c3dd
commit 9847f72e6c

View File

@ -40,8 +40,14 @@ class Streams_HTML():
fakefile.write(" <td>%s</td>\n" % (str(tuner)))
fakefile.write(" <td>%s</td>\n" % (str(tuner_status[tuner]["status"])))
if tuner_status[tuner]["status"] == "Active":
fakefile.write(" <td>%s<img src=\"%s\" alt=\"%s\" width=\"100\" height=\"100\">%s</td>\n" % (
tuner_status[tuner]["epg"]["name"], tuner_status[tuner]["epg"]["thumbnail"], tuner_status[tuner]["epg"]["name"], str(tuner_status[tuner]["epg"]["number"])))
try:
channel_name = tuner_status[tuner]["epg"]["name"]
channel_number = tuner_status[tuner]["epg"]["number"]
channel_thumbnail = tuner_status[tuner]["epg"]["thumbnail"]
fakefile.write(" <td>%s<img src=\"%s\" alt=\"%s\" width=\"100\" height=\"100\">%s</td>\n" % (
channel_name, channel_thumbnail, channel_name, str(channel_number)))
except TypeError:
fakefile.write(" <td>%s</td>\n" % (str(tuner_status[tuner]["channel"])))
fakefile.write(" <td>%s</td>\n" % (str(tuner_status[tuner]["method"])))
fakefile.write(" <td>%s</td>\n" % (str(tuner_status[tuner]["Play Time"])))
else: