C# 클래스 MediaPortal.Plugins.MovingPictures.LocalMediaManagement.Utility

파일 보기 프로젝트 열기: damienhaynes/moving-pictures

공개 메소드들

메소드 설명
GetFileNameWithoutExtensionAndStackMarkers ( FileInfo fileInfo ) : string
GetFileNameWithoutExtensionAndStackMarkers ( string fileName ) : string

Remove extension and stackmarkers from a filename

GetMountedVideoDiscPath ( string imagePath ) : string
GetMovieBaseDirectory ( DirectoryInfo directory ) : DirectoryInfo

Returns the base directory for the movie files that are part of the input directory

GetMovieHashString ( string filename ) : string
GetWebGrabberInstance ( string url ) : WebGrabber

Get a WebGrabber instance with the default moving pictures settings

IsDriveRoot ( DirectoryInfo directory ) : bool

Checks if the directory is a logical drive root

IsDriveRoot ( string path ) : bool

Checks if the given path is a logical drive root

IsImageFile ( string imagePath ) : bool
IsMediaPortalVideoFile ( FileInfo file ) : bool

Checks if file has valid video extensions (as specified by media portal

MediaPortal Dependency!

IsMediaPortalVideoFile ( string file ) : bool
IsMounted ( string imagePath ) : bool
LogDirectoryStructure ( string path ) : void

This method will dump the complete file/directory structure to the log

MountImage ( string imagePath ) : MountResult
MountImage ( string imagePath, int maxWaitCycles ) : MountResult
UnMount ( string imagePath ) : void
isFileMultiPart ( FileInfo file ) : bool
isFileMultiPart ( string fileName ) : bool

Checks if a filename has stack markers (and is multi-part)

isFolderDedicated ( DirectoryInfo folder, int expectedCount ) : bool

Checks if a folder contains a maximum amount of video files This is used to determine if a folder is dedicated to one movie

isFolderMultipart ( string name ) : bool

Checks if the foldername is a multipart marker.

isKnownSubFolder ( string name ) : bool

Checks if the foldername is ambigious (non descriptive)

비공개 메소드들

메소드 설명
Utility ( ) : System

메소드 상세

GetFileNameWithoutExtensionAndStackMarkers() 공개 정적인 메소드

public static GetFileNameWithoutExtensionAndStackMarkers ( FileInfo fileInfo ) : string
fileInfo System.IO.FileInfo
리턴 string

GetFileNameWithoutExtensionAndStackMarkers() 공개 정적인 메소드

Remove extension and stackmarkers from a filename
public static GetFileNameWithoutExtensionAndStackMarkers ( string fileName ) : string
fileName string Filename including the extension
리턴 string

GetMountedVideoDiscPath() 공개 정적인 메소드

public static GetMountedVideoDiscPath ( string imagePath ) : string
imagePath string
리턴 string

GetMovieBaseDirectory() 공개 정적인 메소드

Returns the base directory for the movie files that are part of the input directory
public static GetMovieBaseDirectory ( DirectoryInfo directory ) : DirectoryInfo
directory System.IO.DirectoryInfo directory to start in
리턴 System.IO.DirectoryInfo

GetMovieHashString() 공개 정적인 메소드

public static GetMovieHashString ( string filename ) : string
filename string
리턴 string

GetWebGrabberInstance() 공개 정적인 메소드

Get a WebGrabber instance with the default moving pictures settings
public static GetWebGrabberInstance ( string url ) : WebGrabber
url string url to resource
리턴 Cornerstone.Tools.WebGrabber

IsDriveRoot() 공개 정적인 메소드

Checks if the directory is a logical drive root
public static IsDriveRoot ( DirectoryInfo directory ) : bool
directory System.IO.DirectoryInfo
리턴 bool

IsDriveRoot() 공개 정적인 메소드

Checks if the given path is a logical drive root
public static IsDriveRoot ( string path ) : bool
path string
리턴 bool

IsImageFile() 공개 정적인 메소드

public static IsImageFile ( string imagePath ) : bool
imagePath string
리턴 bool

IsMediaPortalVideoFile() 공개 정적인 메소드

Checks if file has valid video extensions (as specified by media portal
MediaPortal Dependency!
public static IsMediaPortalVideoFile ( FileInfo file ) : bool
file System.IO.FileInfo
리턴 bool

IsMediaPortalVideoFile() 공개 정적인 메소드

public static IsMediaPortalVideoFile ( string file ) : bool
file string
리턴 bool

IsMounted() 공개 정적인 메소드

public static IsMounted ( string imagePath ) : bool
imagePath string
리턴 bool

LogDirectoryStructure() 공개 정적인 메소드

This method will dump the complete file/directory structure to the log
public static LogDirectoryStructure ( string path ) : void
path string
리턴 void

MountImage() 공개 정적인 메소드

public static MountImage ( string imagePath ) : MountResult
imagePath string
리턴 MountResult

MountImage() 공개 정적인 메소드

public static MountImage ( string imagePath, int maxWaitCycles ) : MountResult
imagePath string
maxWaitCycles int
리턴 MountResult

UnMount() 공개 정적인 메소드

public static UnMount ( string imagePath ) : void
imagePath string
리턴 void

isFileMultiPart() 공개 정적인 메소드

public static isFileMultiPart ( FileInfo file ) : bool
file System.IO.FileInfo
리턴 bool

isFileMultiPart() 공개 정적인 메소드

Checks if a filename has stack markers (and is multi-part)
public static isFileMultiPart ( string fileName ) : bool
fileName string
리턴 bool

isFolderDedicated() 공개 정적인 메소드

Checks if a folder contains a maximum amount of video files This is used to determine if a folder is dedicated to one movie
public static isFolderDedicated ( DirectoryInfo folder, int expectedCount ) : bool
folder System.IO.DirectoryInfo the directory to check
expectedCount int maximum count
리턴 bool

isFolderMultipart() 공개 정적인 메소드

Checks if the foldername is a multipart marker.
public static isFolderMultipart ( string name ) : bool
name string
리턴 bool

isKnownSubFolder() 공개 정적인 메소드

Checks if the foldername is ambigious (non descriptive)
public static isKnownSubFolder ( string name ) : bool
name string
리턴 bool