forked from hummypkg/webif
Remove invalid use of video/ts MIME type
This commit is contained in:
parent
8f99579c58
commit
02d30dba9d
@ -269,7 +269,7 @@ proc {system dlnadb} {} {
|
|||||||
}
|
}
|
||||||
|
|
||||||
proc {system _dlnaurl} {file urlbase} {
|
proc {system _dlnaurl} {file urlbase} {
|
||||||
set mime "video/ts"
|
set mime "video/mp2t"
|
||||||
if {[catch {set db [sqlite3.open [system dlnadb]]}]} {
|
if {[catch {set db [sqlite3.open [system dlnadb]]}]} {
|
||||||
return {}
|
return {}
|
||||||
}
|
}
|
||||||
@ -278,7 +278,10 @@ proc {system _dlnaurl} {file urlbase} {
|
|||||||
from tblresource join tblmedia using (mediaid)
|
from tblresource join tblmedia using (mediaid)
|
||||||
where localurl = '%s'} $file]
|
where localurl = '%s'} $file]
|
||||||
if {[llength $muri]} {
|
if {[llength $muri]} {
|
||||||
lassign [lindex $muri 0] x mime x xuri
|
lassign [lindex $muri 0] x maybemime x xuri
|
||||||
|
if {$maybemime ne "video/ts"} {
|
||||||
|
set mime $maybemime
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
# Try for partially linked entry
|
# Try for partially linked entry
|
||||||
set muri [$db query {
|
set muri [$db query {
|
||||||
|
Loading…
Reference in New Issue
Block a user