forked from hummypkg/webif
catch more dlna database errors, bump to version 0.9.1
git-svn-id: file:///root/webif/svn/humax/pkg/src/webif/trunk@717 2a923420-c742-0410-a762-8d5b09965624
This commit is contained in:
parent
fa9905d8bd
commit
742a56485a
@ -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
|
||||
|
@ -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]
|
||||
|
Loading…
Reference in New Issue
Block a user