From e5c01f19d35c268deacfdb12f29a534dc2842c31 Mon Sep 17 00:00:00 2001 From: hummypkg Date: Sun, 3 Jan 2016 22:29:55 +0000 Subject: [PATCH] display Enc icon for protected EPG entries git-svn-id: file:///root/webif/svn/pkg/webif/trunk@2562 2a923420-c742-0410-a762-8d5b09965624 --- CONTROL/control | 4 ++-- webif/lib/epg.class | 9 ++++++++- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/CONTROL/control b/CONTROL/control index 0895a6f..6bd28bf 100644 --- a/CONTROL/control +++ b/CONTROL/control @@ -1,10 +1,10 @@ Package: webif Priority: optional Section: web -Version: 1.2.5-13 +Version: 1.2.6 Architecture: mipsel Maintainer: af123@hummypkg.org.uk -Depends: webif-channelicons(>=1.1.18),lighttpd(>=1.4.37-2),jim(>=0.76),jim-oo,jim-sqlite3(>=0.76),jim-cgi(>=0.7),jim-binary(>=0.76),service-control(>=2.1),busybox(>=1.20.2-1),lsof(>=4.87),epg(>=1.2.0),hmt(>=2.0.8),ssmtp,anacron,trm(>=1.1),openssl-command,nicesplice,id3v2,file,rsvsync(>=1.0.2),webif-charts(>=1.2-1),stripts(>=1.2.5-3),smartmontools,tmenu(>=1.08),ffmpeg,id3v2,multienv(>=1.6),tcpping(>=1.1),e2fsprogs,wireless-tools(>=29-1),dbupdate,recmon(>=2.0.7) +Depends: webif-channelicons(>=1.1.18),lighttpd(>=1.4.37-2),jim(>=0.76),jim-oo,jim-sqlite3(>=0.76),jim-cgi(>=0.7),jim-binary(>=0.76),service-control(>=2.1),busybox(>=1.20.2-1),lsof(>=4.87),epg(>=1.2.1),hmt(>=2.0.8),ssmtp,anacron,trm(>=1.1),openssl-command,nicesplice,id3v2,file,rsvsync(>=1.0.2),webif-charts(>=1.2-1),stripts(>=1.2.5-3),smartmontools,tmenu(>=1.08),ffmpeg,id3v2,multienv(>=1.6),tcpping(>=1.1),e2fsprogs,wireless-tools(>=29-1),dbupdate,recmon(>=2.0.7) Suggests: Description: An evolving web interface for the Humax. Tags: http://hummy.tv/forum/threads/6484/ diff --git a/webif/lib/epg.class b/webif/lib/epg.class index 6c2d93e..520ce41 100644 --- a/webif/lib/epg.class +++ b/webif/lib/epg.class @@ -46,6 +46,8 @@ class epg { channel_crid "" channel_hsvc 0 + content_mgmt 0 + sched_type -1 rsv 0 @@ -55,7 +57,7 @@ epg method _parse {line} { lassign [split $line "\t"] \ service_id event_id start duration encrypted name text warning \ content_code content_type event_crid series_crid rec_crid \ - warning_mode + warning_mode content_mgmt } epg method percent {} { @@ -255,6 +257,11 @@ epg method icon_set {{height 0}} { "" } + if {$content_mgmt} { + lappend set \ + "" + } + return $set }