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

ファイルを表示 Open project: damienhaynes/moving-pictures Class Usage Examples

Public Methods

Method Description
Approve ( MovieMatch match ) : void
Ignore ( MovieMatch match ) : void
Join ( List matchList ) : void
ManualAssign ( MovieMatch match ) : void
MarkMediaForRemoval ( DBLocalMedia localMedia ) : bool

Marks a local media object for removal by the importer. This will ensure the object is securely removed from the system.

MovieImporter ( ) : System
OnVolumeInserted ( string volume, string serial ) : void
Reprocess ( DBMovieInfo movie ) : bool
Reprocess ( List fileList ) : void
Reprocess ( MovieMatch match ) : void
RestartScanner ( ) : void
RestoreAllIgnoredFiles ( ) : void
Split ( MovieMatch match ) : void
Start ( ) : void
Stop ( ) : void
Update ( DBMovieInfo movie, DBSourceInfo source ) : void

Private Methods

Method Description
AssignAndCommit ( MovieMatch match, bool update ) : void
AssignFileToMovie ( IList localMedia, DBMovieInfo movie, bool update ) : void
DatabaseManager_ObjectDeleted ( DatabaseTable obj ) : void
GetMatches ( MovieMatch mediaMatch ) : void
OnFileAdded ( Object source, FileSystemEventArgs e ) : void
OnFileDeleted ( Object source, FileSystemEventArgs e ) : void
OnFileRenamed ( object source, RenamedEventArgs e ) : void
OnProgress ( string message ) : void
OnWatcherError ( object source, ErrorEventArgs e ) : void
PowerEventHandler ( MovingPicturesCore powerEvent ) : void
ProcessNextApprovedMatches ( ) : void
ProcessNextPendingMatch ( ) : void
RemoveCommitedRelations ( DBLocalMedia file ) : void
RemoveCommitedRelations ( List fileList ) : void
RemoveFromMatchLists ( MovieMatch match ) : void
RescanNetworkPaths ( object state ) : void

Rescans all network paths

ScanAndMonitorPaths ( ) : void
ScanFiles ( List importFileList, bool highPriority ) : void
ScanMedia ( ) : void
ScanPath ( DBImportPath importPath ) : void
SetupFileSystemWatchers ( ) : void
UpdateFileSystemWatchers ( ) : void
UpdateMediaInfo ( MovieMatch match ) : void
UpdatePercentDone ( ) : void
WatchImportPath ( FileSystemWatcher watcher, DBImportPath importPath ) : void
initialize ( ) : void
onFileQueued ( object sender, NotifyCollectionChangedEventArgs e ) : void
onFileRemoved ( object sender, NotifyCollectionChangedEventArgs e ) : void
processQueuedFiles ( object state ) : void
processRemovedFiles ( object state ) : void
processRenamedFilesInQueue ( string oldPath, string newPath ) : void

Processes renamed files that are in queue and not-persisted.

Method Details

Approve() public method

public Approve ( MovieMatch match ) : void
match MovieMatch
return void

Ignore() public method

public Ignore ( MovieMatch match ) : void
match MovieMatch
return void

Join() public method

public Join ( List matchList ) : void
matchList List
return void

ManualAssign() public method

public ManualAssign ( MovieMatch match ) : void
match MovieMatch
return void

MarkMediaForRemoval() public method

Marks a local media object for removal by the importer. This will ensure the object is securely removed from the system.
public MarkMediaForRemoval ( DBLocalMedia localMedia ) : bool
localMedia DBLocalMedia local media object.
return bool

MovieImporter() public method

public MovieImporter ( ) : System
return System

OnVolumeInserted() public method

public OnVolumeInserted ( string volume, string serial ) : void
volume string
serial string
return void

Reprocess() public method

public Reprocess ( DBMovieInfo movie ) : bool
movie MediaPortal.Plugins.MovingPictures.Database.DBMovieInfo
return bool

Reprocess() public method

public Reprocess ( List fileList ) : void
fileList List
return void

Reprocess() public method

public Reprocess ( MovieMatch match ) : void
match MovieMatch
return void

RestartScanner() public method

public RestartScanner ( ) : void
return void

RestoreAllIgnoredFiles() public method

public RestoreAllIgnoredFiles ( ) : void
return void

Split() public method

public Split ( MovieMatch match ) : void
match MovieMatch
return void

Start() public method

public Start ( ) : void
return void

Stop() public method

public Stop ( ) : void
return void

Update() public method

public Update ( DBMovieInfo movie, DBSourceInfo source ) : void
movie MediaPortal.Plugins.MovingPictures.Database.DBMovieInfo
source DBSourceInfo
return void