Class VideoResolver
Inheritance
System.Object
VideoResolver
Assembly: Emby.Naming.dll
Syntax
public sealed class VideoResolver
Constructors
VideoResolver(NamingOptions)
Declaration
public VideoResolver(NamingOptions options)
Parameters
Declaration
public VideoResolver(NamingOptions options, IFileSystem fileSystem)
Parameters
Methods
CleanDateTime(String, Boolean)
Declaration
public CleanDateTimeResult CleanDateTime(string filename, bool isDirectory)
Parameters
Type |
Name |
Description |
System.String |
filename |
|
System.Boolean |
isDirectory |
|
Returns
CleanString(String)
Declaration
public string CleanString(string name)
Parameters
Type |
Name |
Description |
System.String |
name |
|
Returns
Type |
Description |
System.String |
|
Declaration
public bool IsVideoFile(FileSystemMetadata file)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Resolves the specified path.
Declaration
public MediaFileInfo Resolve(FileSystemMetadata fileInfo, bool parseName = true)
Parameters
Returns
Resolve(ReadOnlySpan<Char>, Boolean, Boolean)
Declaration
public MediaFileInfo Resolve(ReadOnlySpan<char> path, bool isDirectory, bool parseName = true)
Parameters
Type |
Name |
Description |
System.ReadOnlySpan<System.Char> |
path |
|
System.Boolean |
isDirectory |
|
System.Boolean |
parseName |
|
Returns
ResolveDirectory(ReadOnlySpan<Char>, Boolean)
Declaration
public MediaFileInfo ResolveDirectory(ReadOnlySpan<char> path, bool parseName = true)
Parameters
Type |
Name |
Description |
System.ReadOnlySpan<System.Char> |
path |
The path.
|
System.Boolean |
parseName |
|
Returns
ResolveFile(ReadOnlySpan<Char>)
Declaration
public MediaFileInfo ResolveFile(ReadOnlySpan<char> path)
Parameters
Type |
Name |
Description |
System.ReadOnlySpan<System.Char> |
path |
The path.
|
Returns
Extension Methods