diff --git a/CONTROL/control b/CONTROL/control index 316e9c2..17f2021 100644 --- a/CONTROL/control +++ b/CONTROL/control @@ -1,9 +1,9 @@ Package: webif Priority: optional Section: web -Version: 0.9.6-5 +Version: 0.9.7 Architecture: mipsel Maintainer: af123@hummypkg.org.uk -Depends: webif-channelicons,mongoose(>=3.0-7),jim(>=0.73-1),jim-oo,jim-sqlite3(>=0.73),jim-cgi(>=0.5),service-control(>=1.2),busybox(>=1.19.3-1),lsof,epg(>=1.0.9),hmt(>=1.1.6),ssmtp,anacron,trm,openssl-command,nicesplice,id3v2,file,rsvsync(>=1.0.1),webif-charts +Depends: webif-channelicons(>=1.0.1),mongoose(>=3.0-7),jim(>=0.73-1),jim-oo,jim-sqlite3(>=0.73),jim-cgi(>=0.5),service-control(>=1.2),busybox(>=1.19.3-1),lsof,epg(>=1.0.9),hmt(>=1.1.6),ssmtp,anacron,trm,openssl-command,nicesplice,id3v2,file,rsvsync(>=1.0.2),webif-charts Suggests: ffmpeg,webif-iphone Description: An evolving web interface for the Humax. diff --git a/var/mongoose/cgi-bin/backup/restore.jim b/var/mongoose/cgi-bin/backup/restore.jim index 533ecd2..9ebcc97 100755 --- a/var/mongoose/cgi-bin/backup/restore.jim +++ b/var/mongoose/cgi-bin/backup/restore.jim @@ -92,6 +92,14 @@ puts "Restoring favourite channels..." $rsvdb query {begin transaction;} $rsvdb query {delete from channel.TBL_FAV} +$rsvdb query {drop table if exists pending.fav} +$rsvdb query {create table pending.fav ( + favIdx integer primary key autoincrement unique, + hSvc integer(4), + eFavGroup integer(4), + [eSvcType] integer(4) + )} + set grp 0 foreach line $data { set vals [split $line "\t"] @@ -115,7 +123,7 @@ foreach line $data { } set query " - insert into channel.TBL_FAV(hSvc, eFavGroup, eSvcType) + insert into pending.fav(hSvc, eFavGroup, eSvcType) values($hsvc, $group, $type); "