Add HDDVD recognition
This commit is contained in:
parent
0adc77209c
commit
68de4a6568
|
@ -66,6 +66,7 @@ namespace MediaBrowser.Controller.IO
|
||||||
//filtered - see if it is one of our "indicator" folders and mark it now - no reason to search for it again
|
//filtered - see if it is one of our "indicator" folders and mark it now - no reason to search for it again
|
||||||
args.IsBDFolder |= file.cFileName.Equals("bdmv", StringComparison.OrdinalIgnoreCase);
|
args.IsBDFolder |= file.cFileName.Equals("bdmv", StringComparison.OrdinalIgnoreCase);
|
||||||
args.IsDVDFolder |= file.cFileName.Equals("video_ts", StringComparison.OrdinalIgnoreCase);
|
args.IsDVDFolder |= file.cFileName.Equals("video_ts", StringComparison.OrdinalIgnoreCase);
|
||||||
|
args.IsHDDVDFolder |= file.cFileName.Equals("hvdvd_ts", StringComparison.OrdinalIgnoreCase);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -37,6 +37,7 @@ namespace MediaBrowser.Controller.Library
|
||||||
|
|
||||||
public bool IsBDFolder { get; set; }
|
public bool IsBDFolder { get; set; }
|
||||||
public bool IsDVDFolder { get; set; }
|
public bool IsDVDFolder { get; set; }
|
||||||
|
public bool IsHDDVDFolder { get; set; }
|
||||||
|
|
||||||
public WIN32_FIND_DATA? GetFileSystemEntry(string path)
|
public WIN32_FIND_DATA? GetFileSystemEntry(string path)
|
||||||
{
|
{
|
||||||
|
|
|
@ -24,7 +24,9 @@ namespace MediaBrowser.Controller.Resolvers
|
||||||
"video_ts",
|
"video_ts",
|
||||||
"audio_ts",
|
"audio_ts",
|
||||||
"ps3_update",
|
"ps3_update",
|
||||||
"ps3_vprm"
|
"ps3_vprm",
|
||||||
|
"adv_obj",
|
||||||
|
"hvdvd_ts"
|
||||||
};
|
};
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Determines whether a path should be resolved or ignored entirely - called before we even look at the contents
|
/// Determines whether a path should be resolved or ignored entirely - called before we even look at the contents
|
||||||
|
|
|
@ -79,6 +79,14 @@ namespace MediaBrowser.Controller.Resolvers.Movies
|
||||||
VideoType = VideoType.BluRay
|
VideoType = VideoType.BluRay
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
else if (args.IsHDDVDFolder)
|
||||||
|
{
|
||||||
|
return new Movie()
|
||||||
|
{
|
||||||
|
Path = args.Path,
|
||||||
|
VideoType = VideoType.HdDvd
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
// Loop through each child file/folder and see if we find a video
|
// Loop through each child file/folder and see if we find a video
|
||||||
foreach (var child in args.FileSystemChildren)
|
foreach (var child in args.FileSystemChildren)
|
||||||
|
|
|
@ -6,6 +6,7 @@ namespace MediaBrowser.Model.Entities
|
||||||
VideoFile,
|
VideoFile,
|
||||||
Iso,
|
Iso,
|
||||||
Dvd,
|
Dvd,
|
||||||
BluRay
|
BluRay,
|
||||||
|
HdDvd
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user