C# Class MediaPortal.Plugins.MovingPictures.LocalMediaManagement.VideoFormatExtensions

Extension methods for the VideoFormat enumeration
Mostrar archivo Open project: damienhaynes/moving-pictures

Public Methods

Method Description
GenerateVideoPathOnDrive ( this self, string driveletter ) : string

Generates the full path to the video file on the specified drive.

GetIdentifier ( this self, string videoPath ) : string

Get a hash representing the standard identifier for this format. Currently supported are the DVD/Bluray Disc ID and the OpenSubtitles.org Movie Hash.

GetMainFeatureFilePath ( this self, string path ) : string

Gets the path to the main feature file for this video format

GetMediaInfo ( this self, string videoPath ) : MediaInfoWrapper

Gets the MediaInfo for the given videopath

PathEndsWith ( this self ) : string

Gets the path 'signature' of this video format.

PathExistsOnDrive ( this self, string driveletter ) : bool

Gets a value indicating wether this video format exists on the specified drive

Validate ( this self, string path ) : bool

Gets a value indicating wether the path validates for the current video format

Method Details

GenerateVideoPathOnDrive() public static method

Generates the full path to the video file on the specified drive.
public static GenerateVideoPathOnDrive ( this self, string driveletter ) : string
self this
driveletter string the drive to use in the generated path
return string

GetIdentifier() public static method

Get a hash representing the standard identifier for this format. Currently supported are the DVD/Bluray Disc ID and the OpenSubtitles.org Movie Hash.
public static GetIdentifier ( this self, string videoPath ) : string
self this
videoPath string path to the main video file
return string

GetMainFeatureFilePath() public static method

Gets the path to the main feature file for this video format
public static GetMainFeatureFilePath ( this self, string path ) : string
self this
path string actual entry path for this video format
return string

GetMediaInfo() public static method

Gets the MediaInfo for the given videopath
public static GetMediaInfo ( this self, string videoPath ) : MediaInfoWrapper
self this
videoPath string path to the video
return MediaInfoWrapper

PathEndsWith() public static method

Gets the path 'signature' of this video format.
public static PathEndsWith ( this self ) : string
self this
return string

PathExistsOnDrive() public static method

Gets a value indicating wether this video format exists on the specified drive
public static PathExistsOnDrive ( this self, string driveletter ) : bool
self this
driveletter string the drive to check
return bool

Validate() public static method

Gets a value indicating wether the path validates for the current video format
public static Validate ( this self, string path ) : bool
self this
path string path to validate
return bool