diff --git a/CONTROL/control b/CONTROL/control index 4e3bb69..f38776e 100644 --- a/CONTROL/control +++ b/CONTROL/control @@ -1,7 +1,7 @@ Package: webif Priority: optional Section: web -Version: 0.9.0-3 +Version: 0.9.1 Architecture: mipsel Maintainer: af123@hummypkg.org.uk Depends: mongoose(>=3.0-7),jim(>=0.73-1),jim-oo,jim-sqlite3(>=0.73),jim-cgi(>=0.5),service-control,busybox(>=1.19.3-1),lsof,epg(>=1.0.8),hmt(>=1.1.4),ssmtp,anacron,trm,openssl-command,nicesplice,id3v2 diff --git a/var/mongoose/lib/ts.class b/var/mongoose/lib/ts.class index e862ef2..5a079d7 100644 --- a/var/mongoose/lib/ts.class +++ b/var/mongoose/lib/ts.class @@ -166,10 +166,12 @@ ts method dlnaloc {} { if {[catch {set db [sqlite3.open $::dmsfile]}]} { return {} } set url "" set rfile [file normalize $file] - set muri [$db query " - select tblresource.mimetype, contenturi - from tblresource join tblmedia using (mediaid) - where localurl = '%s'" $rfile] + if {[catch {set muri [$db query " + select tblresource.mimetype, contenturi + from tblresource join tblmedia using (mediaid) + where localurl = '%s'" $rfile]}]} { + set muri "" + } if {$muri ne ""} { set rec [lindex $muri 0] set xuri [lindex $rec 3]