C# 클래스 TraktPlugin.TraktHandlers.MovingPictures

Support for MovingPictures
상속: ITraktHandler
파일 보기 프로젝트 열기: trakt/Trakt-for-Mediaportal 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
player MediaPortal.Plugins.MovingPictures.MainUI.MoviePlayer
tmdbSource DBSourceInfo

Private Properties

프로퍼티 타입 설명
AddCustomListNode void
AddDummyBlacklistToFilter void
AddMovieCriteriaToCustomlistNode void
AddMovieCriteriaToNode void
AddMovieCriteriaToWatchlistNode void
AddMoviesCriteriaToNode void
CreateNode DBNode
CreateNodeInMenu void
CreateScrobbleData TraktPlugin.TraktAPI.DataStructures.TraktScrobbleMovie
DatabaseManager_ObjectDeleted void
DatabaseManager_ObjectInserted void
DatabaseManager_ObjectUpdatedEx void
GetAdvancedUserRating int
GetFirstWatchedDate string
GetMovieAudioChannels string
GetMovieAudioCodec string
GetMovieDuration double
GetMovieMediaType string
GetMovieResolution string
GetNodeByName DBNode
HasAdvancedRating bool
IsMovie3D bool
MovieMatch bool
RemoveCustomListNode void
RemoveMovieCriteriaFromCustomlistNode void
RemoveMovieCriteriaFromNode void
RemoveMovieCriteriaFromRecommendationsNode void
RemoveMovieCriteriaFromWatchlistNode void
RemoveNode void
RemoveTraktFromCategoryMenu void
RemoveTraktFromFiltersMenu void
SetAdvancedRating void
ShowRateDialog void
StartMovieScrobble void
StopMovieScrobble void
UpdateCategoriesMenu void
UpdateFiltersMenu void

공개 메소드들

메소드 설명
DisposeEvents ( ) : void
FindMovieID ( string title, int year, string imdbid, int &movieID ) : bool
GetMoviePersonInfo ( int movieID, SearchPeople &searchPeople ) : bool
GetTmdbID ( DBMovieInfo movie ) : string
MovingPictures ( int priority ) : System
PlayMovie ( DBMovieInfo movie ) : void
PlayMovie ( int movieID ) : void
Scrobble ( String filename ) : bool
SetUserRating ( int rating ) : void
StopScrobble ( ) : void
SyncLibrary ( ) : void
SyncProgress ( ) : void
UpdateSettingAsBool ( string setting, bool value ) : void

비공개 메소드들

메소드 설명
AddCustomListNode ( string listName ) : void

Add a new node for a Custom list e.g. new list created A blacklist filter will be created until items are adding to the list

AddDummyBlacklistToFilter ( DBFilter filter ) : void

Creates a dummy blacklist list constraint as opposed to a real Blacklist. A real blacklist can add a huge amount of records to the filters table. The purpose of the blacklist in this context is to simply ensure that there is always at least one criteria added to a filter so that it doesn't show All Movies.

AddMovieCriteriaToCustomlistNode ( string listName, string movieId ) : void

Adds a movie criteria to a custom list node in the Categories and Filters menu(s)

AddMovieCriteriaToNode ( DBNode node, string movieId ) : void

Adds a movie criteria to a node

AddMovieCriteriaToWatchlistNode ( string movieId ) : void

Adds a movie criteria to the Watchlist node in the Categories and Filters menu(s)

AddMoviesCriteriaToNode ( DBNode node, IEnumerable movieIMDbList ) : void

Add criteria (IMDb ID's) for a movie list to a nodes filter criteria We don't need to worry about movies that don't exist as they will simply not be visible

CreateNode ( DBNode rootNode, string name, bool createBlacklist = false ) : DBNode

Created a child node

CreateNodeInMenu ( DBMenu menu, string name ) : void

Creates a node in a menu

CreateScrobbleData ( DBMovieInfo movie ) : TraktScrobbleMovie

Creates Scrobble data based on a DBMovieInfo object

DatabaseManager_ObjectDeleted ( DatabaseTable obj ) : void

Fired when an object is removed from the MovingPictures Database

DatabaseManager_ObjectInserted ( DatabaseTable obj ) : void

Fired when an object is inserted in the Moving Pictures Database

DatabaseManager_ObjectUpdatedEx ( DatabaseTable dbObject, TableUpdateInfo ui ) : void

Fired when an object is updated in the Moving Pictures Database

GetAdvancedUserRating ( DBMovieInfo movie ) : int

gets the user rating for a movie out of 10 this should only be called if the plugin is v1.8.1 or greater!

GetFirstWatchedDate ( DBMovieInfo movie ) : string

gets the first watched date of a movie

GetMovieAudioChannels ( DBMovieInfo movie ) : string

Gets the trakt compatible string for the movies Audio Channels

GetMovieAudioCodec ( DBMovieInfo movie ) : string

Gets the trakt compatible string for the movies Audio

GetMovieDuration ( DBMovieInfo movie, bool isDVD ) : double

returns the movie duration in seconds

GetMovieMediaType ( DBMovieInfo movie ) : string

Gets the trakt compatible string for the movies Media Type

GetMovieResolution ( DBMovieInfo movie ) : string

Gets the trakt compatible string for the movies Resolution

GetNodeByName ( DBNode rootNode, string name ) : DBNode

Gets a child node by name from a parent node

HasAdvancedRating ( DBMovieInfo movie ) : bool

Checks if a movie has a user rating out of 10 this should only be called if the plugin is v1.8.1 or greater!

IsMovie3D ( DBMovieInfo movie ) : bool

Checks if the movie is 3D or not

MovieMatch ( DBMovieInfo movPicsMovie, TraktMovie traktMovie ) : bool

Checks if a local movie is the same as an online movie

RemoveCustomListNode ( string listName ) : void

Removes a custom list from the Trakt Categories and Filters menu Only should remove a node if it no longer exists online at trakt.tv

RemoveMovieCriteriaFromCustomlistNode ( string listName, string movieId ) : void

Removes a movie criteria from a custom list node in the Categories and Filters menu(s)

RemoveMovieCriteriaFromNode ( DBNode node, string movieId ) : void

Removes a movie criteria from a node

RemoveMovieCriteriaFromRecommendationsNode ( string movieId ) : void

Removes a movie criteria from the Recommendations node in the Categories and Filters menu(s)

RemoveMovieCriteriaFromWatchlistNode ( string movieId ) : void

Removes a movie criteria from the Watchlist node in the Categories and Filters menu(s)

RemoveNode ( DBNode rootNode, string name ) : void

Removes a child node

RemoveTraktFromCategoryMenu ( ) : void

Removes top level trakt node from MovingPictures categories

RemoveTraktFromFiltersMenu ( ) : void

Removes top level trakt node from MovingPictures filters

SetAdvancedRating ( DBMovieInfo movie, int userRating ) : void

sets the user rating for a movie out of 10 this should only be called if the plugin is v1.8.1 or greater!

ShowRateDialog ( DBMovieInfo movie ) : void

Shows the Rate Movie Dialog after playback has ended

StartMovieScrobble ( DBMovieInfo movie ) : void

Starts or un-pauses a movie scrobble

StopMovieScrobble ( DBMovieInfo movie, bool forceWatched = false ) : void

Stops a movie scrobble

UpdateCategoriesMenu ( SyncListType syncLists = SyncListType.All ) : void

Creates/Updates Trakt categories menu

UpdateFiltersMenu ( SyncListType syncLists = SyncListType.All ) : void

Creates/Updates Trakt filters menu

메소드 상세

DisposeEvents() 공개 메소드

public DisposeEvents ( ) : void
리턴 void

FindMovieID() 공개 정적인 메소드

public static FindMovieID ( string title, int year, string imdbid, int &movieID ) : bool
title string
year int
imdbid string
movieID int
리턴 bool

GetMoviePersonInfo() 공개 정적인 메소드

public static GetMoviePersonInfo ( int movieID, SearchPeople &searchPeople ) : bool
movieID int
searchPeople TraktPlugin.GUI.SearchPeople
리턴 bool

GetTmdbID() 공개 정적인 메소드

public static GetTmdbID ( DBMovieInfo movie ) : string
movie MediaPortal.Plugins.MovingPictures.Database.DBMovieInfo
리턴 string

MovingPictures() 공개 메소드

public MovingPictures ( int priority ) : System
priority int
리턴 System

PlayMovie() 공개 정적인 메소드

public static PlayMovie ( DBMovieInfo movie ) : void
movie MediaPortal.Plugins.MovingPictures.Database.DBMovieInfo
리턴 void

PlayMovie() 공개 정적인 메소드

public static PlayMovie ( int movieID ) : void
movieID int
리턴 void

Scrobble() 공개 메소드

public Scrobble ( String filename ) : bool
filename String
리턴 bool

SetUserRating() 공개 정적인 메소드

public static SetUserRating ( int rating ) : void
rating int
리턴 void

StopScrobble() 공개 메소드

public StopScrobble ( ) : void
리턴 void

SyncLibrary() 공개 메소드

public SyncLibrary ( ) : void
리턴 void

SyncProgress() 공개 메소드

public SyncProgress ( ) : void
리턴 void

UpdateSettingAsBool() 공개 정적인 메소드

public static UpdateSettingAsBool ( string setting, bool value ) : void
setting string
value bool
리턴 void

프로퍼티 상세

player 공개적으로 정적으로 프로퍼티

public static MoviePlayer,MediaPortal.Plugins.MovingPictures.MainUI player
리턴 MediaPortal.Plugins.MovingPictures.MainUI.MoviePlayer

tmdbSource 공개적으로 정적으로 프로퍼티

public static DBSourceInfo tmdbSource
리턴 DBSourceInfo