C# Class MediaPortal.Plugins.MovingPictures.SignatureBuilders.NfoBuilder

The NFO Signature Builder scans for text-based files containing the imdbid format and updates the signature with the first occurance of an imdbid.
Inheritance: ISignatureBuilder
Datei anzeigen Open project: damienhaynes/moving-pictures

Public Methods

Method Description
UpdateSignature ( MovieSignature signature ) : SignatureBuilderResult
fileScanner ( DirectoryInfo dir, string filename ) : string

Scans the directory for (a) specific NFO file(s) and returns the first found ImdbID

parseFile ( string filePath ) : string

Extract an ImdbID out of a textfile

Private Methods

Method Description
fileScanner ( DirectoryInfo dir ) : string

Scans the directory for NFO files and returns the first found ImdbID

Method Details

UpdateSignature() public method

public UpdateSignature ( MovieSignature signature ) : SignatureBuilderResult
signature MovieSignature
return SignatureBuilderResult

fileScanner() public static method

Scans the directory for (a) specific NFO file(s) and returns the first found ImdbID
public static fileScanner ( DirectoryInfo dir, string filename ) : string
dir System.IO.DirectoryInfo directory
filename string * or filename without extension
return string

parseFile() public static method

Extract an ImdbID out of a textfile
public static parseFile ( string filePath ) : string
filePath string full path to the file
return string