diff --git a/CONTROL/control b/CONTROL/control index 38ead0e..6aa580c 100644 --- a/CONTROL/control +++ b/CONTROL/control @@ -1,10 +1,10 @@ Package: webif Priority: optional Section: web -Version: 0.5.5 +Version: 0.5.6 Architecture: mipsel Maintainer: af123@hummypkg.org.uk -Depends: mongoose(>=2.11-5),jim(>=0.71-1),jim-sqlite3(>=0.71-1),jim-cgi(>=0.2),jim-oo,service-control,busybox(>=1.18.3-1),lsof,epg(>=1.0.2),hmt(>=1.0.5),ssmtp +Depends: mongoose(>=2.11-5),jim(>=0.71-1),jim-sqlite3(>=0.71-1),jim-cgi(>=0.2),jim-oo,service-control,busybox(>=1.18.3-1),lsof,epg(>=1.0.2),hmt(>=1.0.6),ssmtp Replaces: af123-webif Conflicts: af123-webif Suggests: ffmpeg diff --git a/var/mongoose/cgi-bin/browse.jim b/var/mongoose/cgi-bin/browse.jim index deba0b7..6491182 100755 --- a/var/mongoose/cgi-bin/browse.jim +++ b/var/mongoose/cgi-bin/browse.jim @@ -47,18 +47,49 @@ proc entry {file} {{i 0}} { set ts [ts fetch $file 1] set img 741_1_10_Video_Title.png set pad 0 + set newpad "top: -6; left: 4;" } else { set type gen set ts 0 set img 743_4_10_Video_Xvid_File.png - set pad "2 2 2 2" + set pad "2" + set newpad "top: -2; left: 2;" } puts "
- + " + + set new 0 + if {$type eq "ts"} { + if {[$ts flag "New"] > 0} { set new 1 } + } else { + if {![file exists "[file rootname $file].hmi"]} { set new 1 } + } + + if {$new} { + # Overlay the new image over the media one. + puts " + + + + + " + } else { + puts " + + " + } + + puts " $bfile " @@ -84,6 +115,20 @@ proc entry {file} {{i 0}} { puts "" } + + # Encrypted + if {[$ts flag "Encrypted"] > 0} { + puts "" + } + + # Guidance + if {[$ts flag "Guidance"] > 0} { + puts "" + } } # Opt+ button diff --git a/var/mongoose/cgi-bin/browse/file.jim b/var/mongoose/cgi-bin/browse/file.jim index 2f7eda9..0071290 100755 --- a/var/mongoose/cgi-bin/browse/file.jim +++ b/var/mongoose/cgi-bin/browse/file.jim @@ -34,6 +34,20 @@ if {$type eq "ts"} { Synopsis [$ts get synopsis] + " + + if {[$ts flag "Guidance"] > 0} { + puts " + Guidance + + [$ts get guidance] + + + " + } + + puts " Definition " diff --git a/var/mongoose/cgi-bin/browse/lock.jim b/var/mongoose/cgi-bin/browse/lock.jim index caf5d32..b53679f 100755 --- a/var/mongoose/cgi-bin/browse/lock.jim +++ b/var/mongoose/cgi-bin/browse/lock.jim @@ -9,7 +9,7 @@ puts "" cgi_input #cgi_dump -set _cgi(file) "/media/My Video/The Walking Dead/The Walking Dead S01E06.ts" +#set _cgi(file) "/media/My Video/The Walking Dead/The Walking Dead S01E06.ts" set file [dict get $_cgi file] set ts [ts fetch $file] diff --git a/var/mongoose/cgi-bin/epg_search.jim b/var/mongoose/cgi-bin/epg_search.jim index cecec39..0b986a0 100755 --- a/var/mongoose/cgi-bin/epg_search.jim +++ b/var/mongoose/cgi-bin/epg_search.jim @@ -2,6 +2,7 @@ package require cgi source /mod/var/mongoose/lib/epg.class +source /mod/var/mongoose/lib/spinner.class source /mod/var/mongoose/lib/altrow source /mod/var/mongoose/lib/cat @@ -112,6 +113,12 @@ $db close puts "" puts "" +[spinner new { + text "Loading EPG Data..." + size "1.2em" + style "margin: 1em;" + }] start + if {$ct > 0 } { set records [epg fetch dump -type $ct] } elseif {$crid ne ""} { diff --git a/var/mongoose/lib/ts.class b/var/mongoose/lib/ts.class index 7f561ba..4d44077 100644 --- a/var/mongoose/lib/ts.class +++ b/var/mongoose/lib/ts.class @@ -13,6 +13,7 @@ class ts { end 0 flags "" error "" + guidance "" } ts method duration {} { @@ -35,6 +36,7 @@ ts method _parse {line} { set start [lindex $vars 5] set end [lindex $vars 6] set flags [split [string range [lindex $vars 7] 0 end-1] ,] + set guidance [lindex $vars 8] } ts method flag {f} {