Fix favourite group selection

This commit is contained in:
HummyPkg 2019-01-17 11:15:45 +00:00
parent ba3db5eb59
commit 132afd3ca7

View File

@ -461,6 +461,7 @@ proc {epg dbfetch} {mode args} {
) " ) "
} }
-fav { -fav {
set v $(1 << ($v - 1))
append from \ append from \
"join TBL_FAV f using(hSvc) " "join TBL_FAV f using(hSvc) "
append q "and f.eFavGroup = $v " append q "and f.eFavGroup = $v "
@ -515,7 +516,7 @@ proc {epg fetch} {mode args} {
proc {epg favlist} {} { proc {epg favlist} {} {
global channeldb global channeldb
set num [[settings] channel_group] set num $(1 << ([[settings] channel_group] - 1))
if {!$num} { return "" } if {!$num} { return "" }