From 1569600ee3862210d140b8ea6ec38e39cf8057af Mon Sep 17 00:00:00 2001
From: Markus Ehrnsperger <>
Date: Sat, 2 Dec 2023 12:36:40 +0100
Subject: [PATCH] channellogos
---
README | 5 +++--
live/css/styles.css | 3 +++
pages/whats_on.ecpp | 12 +++++++++++-
setup.cpp | 7 ++++++-
setup.h | 2 ++
tntconfig.cpp | 13 ++++++++++++-
6 files changed, 37 insertions(+), 5 deletions(-)
diff --git a/README b/README
index 8d3c5169..0d07615d 100644
--- a/README
+++ b/README
@@ -106,10 +106,11 @@ You can also specifiy this parameter via commandline:
Additional SSL options are available now. See "How to make LIVE listen
for ssl connections" section below on hints how to setup SSL.
-To display images, you can use:
+To display images or channel logos, you can use:
-e <...> --epgimages=/path/to/epgimages use EPG images created by plugins like tvm2vdr
-t <...> --tvscraperimages=/path/to/tvscraperimages use images created by tvscraper DEPRECATED!
+ --chanlogos=/path/to/channellogos use channel logos (PNG only, case sensitive)
Example:
--tvscraperimages=/var/cache/vdr/plugins/tvscraper DEPRECATED!
Note: tvscraperimages is not required any more, live uses the internal service interface "GetEnvironment" for plugins to get this information from tvscraper/scraper2vdr
@@ -182,7 +183,7 @@ qualified dns name, you should use the ip LIVE is listening on.
Note: This is just a quick'n dirty way to create a SSL self-signed
certicate. Recent browsers (like Firefox 3) will complain about it
-because the certificate wasn´t signed by a known Certificate Authority
+because the certificate wasn´t signed by a known Certificate Authority
(CA).
diff --git a/live/css/styles.css b/live/css/styles.css
index 530915ee..5173a511 100644
--- a/live/css/styles.css
+++ b/live/css/styles.css
@@ -315,6 +315,9 @@ img.actor {
img.artwork {
width: 480px
}
+img.channel_logo {
+ max-height:32px; max-width:150px; vertical-align:middle;
+}
/* ##############################
# Infowin styles for epg infos
##############################
diff --git a/pages/whats_on.ecpp b/pages/whats_on.ecpp
index b0077802..5a2d96a1 100644
--- a/pages/whats_on.ecpp
+++ b/pages/whats_on.ecpp
@@ -238,6 +238,16 @@ if (type == "now") {
tChannelID chanId;
tEventID eventId;
EpgEvents::DecodeDomId(epgEvent->Id(), chanId, eventId);
+
+ // Searching for channel logos
+ std::string chanlogoimg("");
+ if (!LiveSetup().GetChanLogoDir().empty() ) {
+ std::string chanlogopath = LiveSetup().GetChanLogoDir() + epgEvent->Caption() + ".png";
+ struct stat chanfilebuf;
+ if (stat (chanlogopath.c_str(), &chanfilebuf) == 0) {
+ chanlogoimg = "Caption() + ".png\" loading=\"lazy\" class=\"channel_logo\">";
+ }
+ }
%cpp>