diff --git a/webif/html/browse/index.jim b/webif/html/browse/index.jim index 8e6f27c..587f67e 100755 --- a/webif/html/browse/index.jim +++ b/webif/html/browse/index.jim @@ -215,8 +215,8 @@ proc entry {file} {{i 0}} { # Indexed set dlna 0 - if {$::dlnaok && $::model eq "HDR" && [llength [ - system dlnaurl [file normalize $file]]]} { + if {$::dlnaok && $::model eq "HDR" && + [llength [system dlnaurl $file]]} { icon "/img/dlna.png" "Indexed by DLNA Server" set dlna 1 } diff --git a/webif/lib/system.class b/webif/lib/system.class index a740e98..db3ce76 100644 --- a/webif/lib/system.class +++ b/webif/lib/system.class @@ -270,6 +270,10 @@ proc {system dlnadb} {} { proc {system _dlnaurl} {file urlbase} { set mime "video/mp2t" + set nfile $file + if {![catch {set nfile [file normalize $file]}]} { + set file $nfile + } if {[catch {set db [sqlite3.open [system dlnadb]]}]} { return {} } diff --git a/webif/lib/ts.class b/webif/lib/ts.class index 6eb0b51..d4de7ff 100644 --- a/webif/lib/ts.class +++ b/webif/lib/ts.class @@ -331,7 +331,7 @@ ts method setgenre {newgenre} { } ts method dlnaloc {{urlbase ""}} { - return [system dlnaurl [file normalize $file] $urlbase] + return [system dlnaurl $file $urlbase] } ts method cleanbmp {} {