From 132afd3ca791e06d553796534de9c28ee5f451de Mon Sep 17 00:00:00 2001 From: HummyPkg Date: Thu, 17 Jan 2019 11:15:45 +0000 Subject: [PATCH] Fix favourite group selection --- webif/lib/epg.class | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/webif/lib/epg.class b/webif/lib/epg.class index ab8a467..133f78f 100644 --- a/webif/lib/epg.class +++ b/webif/lib/epg.class @@ -461,6 +461,7 @@ proc {epg dbfetch} {mode args} { ) " } -fav { + set v $(1 << ($v - 1)) append from \ "join TBL_FAV f using(hSvc) " append q "and f.eFavGroup = $v " @@ -515,7 +516,7 @@ proc {epg fetch} {mode args} { proc {epg favlist} {} { global channeldb - set num [[settings] channel_group] + set num $(1 << ([[settings] channel_group] - 1)) if {!$num} { return "" }