mirror of
https://github.com/Ernous/TorrServerJellyfin.git
synced 2025-12-19 13:36:09 +05:00
don' spoof mkv as mpeg
this fix playback on Panasonic Viera TVs (but an break some old Samsungs too)
This commit is contained in:
@@ -101,11 +101,11 @@ func MimeTypeByPath(filePath string) (ret mimeType, err error) {
|
|||||||
ret, err = mimeTypeByContent(filePath)
|
ret, err = mimeTypeByContent(filePath)
|
||||||
}
|
}
|
||||||
// Custom DLNA-compat mime mappings
|
// Custom DLNA-compat mime mappings
|
||||||
// TODO: make this client headers / profile map
|
// TODO: make this depend on client headers / profile map
|
||||||
if ret == "video/mp2t" {
|
if ret == "video/mp2t" {
|
||||||
ret = "video/mpeg"
|
ret = "video/mpeg"
|
||||||
} else if ret == "video/x-matroska" {
|
// } else if ret == "video/x-matroska" {
|
||||||
ret = "video/mpeg"
|
// ret = "video/mpeg"
|
||||||
} else if ret == "video/x-msvideo" {
|
} else if ret == "video/x-msvideo" {
|
||||||
ret = "video/avi"
|
ret = "video/avi"
|
||||||
} else if ret == "" {
|
} else if ret == "" {
|
||||||
|
|||||||
Reference in New Issue
Block a user