mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-01-15 23:58:57 +00:00
Fix DLNA playback of DVD and BD folders
This commit is contained in:
@@ -251,12 +251,23 @@ namespace MediaBrowser.MediaEncoding.Probing
|
||||
return null;
|
||||
}
|
||||
|
||||
// Handle MPEG-1 container
|
||||
if (string.Equals(format, "mpegvideo", StringComparison.OrdinalIgnoreCase))
|
||||
{
|
||||
return "mpeg";
|
||||
}
|
||||
|
||||
format = format.Replace("matroska", "mkv", StringComparison.OrdinalIgnoreCase);
|
||||
// Handle MPEG-2 container
|
||||
if (string.Equals(format, "mpeg", StringComparison.OrdinalIgnoreCase))
|
||||
{
|
||||
return "ts";
|
||||
}
|
||||
|
||||
// Handle matroska container
|
||||
if (string.Equals(format, "matroska", StringComparison.OrdinalIgnoreCase))
|
||||
{
|
||||
return "mkv";
|
||||
}
|
||||
|
||||
return format;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user