mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-07 06:17:14 -04:00
use video title set number
This commit is contained in:
parent
d5d9ef129c
commit
8ce5f1d190
@ -515,14 +515,14 @@ namespace MediaBrowser.Providers.MediaInfo
|
||||
{
|
||||
var path = mount == null ? item.Path : mount.MountedPath;
|
||||
var dvd = new Dvd(path);
|
||||
|
||||
|
||||
var primaryTitle = dvd.Titles.OrderByDescending(GetRuntime).FirstOrDefault();
|
||||
|
||||
uint? titleNumber = null;
|
||||
byte? titleNumber = null;
|
||||
|
||||
if (primaryTitle != null)
|
||||
{
|
||||
titleNumber = primaryTitle.TitleNumber;
|
||||
titleNumber = primaryTitle.VideoTitleSetNumber;
|
||||
item.RunTimeTicks = GetRuntime(primaryTitle);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user