1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

Left old MIME type for backward compatibility

This commit is contained in:
Andriy Kushnir (Orhideous) 2022-06-17 13:38:43 +03:00
parent 8d531976a1
commit f2a826bb5d
No known key found for this signature in database
GPG key ID: 62E078AB621B0D15

View file

@ -74,7 +74,7 @@ function enableHlsPlayer(url, item, mediaSource, mediaType) {
type: 'HEAD' type: 'HEAD'
}).then(function (response) { }).then(function (response) {
const contentType = (response.headers.get('Content-Type') || '').toLowerCase(); const contentType = (response.headers.get('Content-Type') || '').toLowerCase();
if (contentType === 'application/vnd.apple.mpegurl') { if (contentType === 'application/vnd.apple.mpegurl' || contentType === 'application/x-mpegurl') {
resolve(); resolve();
} else { } else {
reject(); reject();