diff --git a/fHDHR_web/pages/guide_html.py b/fHDHR_web/pages/guide_html.py index 626eca7..7c70276 100644 --- a/fHDHR_web/pages/guide_html.py +++ b/fHDHR_web/pages/guide_html.py @@ -38,6 +38,15 @@ class Guide_HTML(): "listing_description": channel["listing"][0]["description"], "remaining_time": str(remaining_time) } + if source in ["blocks", "origin", self.fhdhr.config.dict["main"]["dictpopname"]]: + chan_obj = self.fhdhr.device.channels.get_channel_obj("origin_id", channel["id"]) + + chan_dict["name"] = chan_obj.dict["name"] + chan_dict["number"] = chan_obj.dict["number"] + chan_dict["chan_thumbnail"] = chan_obj.thumbnail + chan_dict["enabled"] = chan_obj.dict["enabled"] + chan_dict["play_url"] = chan_obj.play_url + chan_guide_list.append(chan_dict) - return render_template('guide.html', request=request, fhdhr=self.fhdhr, chan_guide_list=chan_guide_list, epg_methods=epg_methods) + return render_template('guide.html', request=request, fhdhr=self.fhdhr, chan_guide_list=chan_guide_list, epg_methods=epg_methods, source=source) diff --git a/fHDHR_web/templates/guide.html b/fHDHR_web/templates/guide.html index f42eb5c..64c0d77 100644 --- a/fHDHR_web/templates/guide.html +++ b/fHDHR_web/templates/guide.html @@ -12,6 +12,9 @@
| Play | + {% endif %}Channel Name | Channel Number | Channel Thumbnail | @@ -23,6 +26,13 @@ {% for chan_dict in chan_guide_list %}
|---|---|---|---|
| + {% if chan_dict["enabled"] %} + Play + {% endif %} + | + {% endif %}{{ chan_dict["name"] }} | {{ chan_dict["number"] }} |