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

Merge pull request #49 from deathbybandaid/dev

EPG Streams Page Patch
This commit is contained in:
Deathbybandaid 2020-11-13 08:26:54 -05:00 committed by GitHub
commit 6bb31873b2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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)))
fakefile.write(" <td>%s</td>\n" % (str(tuner_status[tuner]["status"]))) fakefile.write(" <td>%s</td>\n" % (str(tuner_status[tuner]["status"])))
if tuner_status[tuner]["status"] == "Active": if tuner_status[tuner]["status"] == "Active":
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" % ( 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"]))) 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]["method"])))
fakefile.write(" <td>%s</td>\n" % (str(tuner_status[tuner]["Play Time"]))) fakefile.write(" <td>%s</td>\n" % (str(tuner_status[tuner]["Play Time"])))
else: else: