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

Extension methods for the VideoFormat enumeration
Afficher le fichier Open project: damienhaynes/moving-pictures

Méthodes publiques

Méthode 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 méthode

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
Résultat string

GetIdentifier() public static méthode

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
Résultat string

GetMainFeatureFilePath() public static méthode

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
Résultat string

GetMediaInfo() public static méthode

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

PathEndsWith() public static méthode

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

PathExistsOnDrive() public static méthode

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
Résultat bool

Validate() public static méthode

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
Résultat bool