mirror of
https://github.com/fHDHR/fHDHR_NextPVR.git
synced 2025-12-06 15:36:59 -05:00
Add Information to Channels Page
This commit is contained in:
parent
f45fdf7719
commit
cd88725dd9
@ -9,6 +9,19 @@
|
|||||||
</div>
|
</div>
|
||||||
<br>
|
<br>
|
||||||
|
|
||||||
|
<table class="center" style="width:50%">
|
||||||
|
<tr>
|
||||||
|
<th></th>
|
||||||
|
<th></th>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
{% for key in list(channels_dict.keys()) %}
|
||||||
|
<tr>
|
||||||
|
<td>{{ key }}</td>
|
||||||
|
<td>{{ channels_dict[key] }}</td>
|
||||||
|
</tr>
|
||||||
|
{% endfor %}
|
||||||
|
|
||||||
<table class="center" style="width:100%">
|
<table class="center" style="width:100%">
|
||||||
<tr>
|
<tr>
|
||||||
<th>Play</th>
|
<th>Play</th>
|
||||||
|
|||||||
@ -15,7 +15,7 @@ class Channels_HTML():
|
|||||||
|
|
||||||
channels_dict = {
|
channels_dict = {
|
||||||
"Total Channels": len(list(self.fhdhr.device.channels.list.keys())),
|
"Total Channels": len(list(self.fhdhr.device.channels.list.keys())),
|
||||||
"enabled": 0,
|
"Enabled": 0,
|
||||||
}
|
}
|
||||||
|
|
||||||
channelslist = []
|
channelslist = []
|
||||||
@ -25,6 +25,6 @@ class Channels_HTML():
|
|||||||
channel_dict["play_url"] = channel_obj.play_url()
|
channel_dict["play_url"] = channel_obj.play_url()
|
||||||
channelslist.append(channel_dict)
|
channelslist.append(channel_dict)
|
||||||
if channel_dict["enabled"]:
|
if channel_dict["enabled"]:
|
||||||
channels_dict["enabled"] += 1
|
channels_dict["Enabled"] += 1
|
||||||
|
|
||||||
return render_template('channels.html', request=request, fhdhr=self.fhdhr, channelslist=channelslist, channels_dict=channels_dict)
|
return render_template('channels.html', request=request, fhdhr=self.fhdhr, channelslist=channelslist, channels_dict=channels_dict, list=list)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user