C# Class TraktPlugin.TraktHandlers.BasicHandler

Show file Open project: trakt/Trakt-for-Mediaportal Class Usage Examples

Private Methods

Method Description
CreateEpisodeScrobbleData ( VideoInfo info ) : TraktScrobbleEpisode

Creates data object for episode scrobbling

CreateMovieScrobbleData ( VideoInfo info ) : TraktScrobbleMovie

Creates data object for movie scrobbling

GetPlayerProgress ( VideoInfo videoInfo ) : double

Gets the Progress of the current video being played

GetProperImdbId ( string id ) : string

Gets a correctly formatted imdb id string

GetTitleAndYear ( string inputTitle, string &title, string &year ) : void

Gets the Title and Year from a combined title+year string Title should be in the form 'Title (Year)' or 'Title [Year]'

InsertAlreadyExistMovies ( TraktSyncResponse response ) : void

Saves any movies that return as 'already_exists' from library sync calls

InsertSkippedMovies ( TraktSyncResponse response ) : void

Saves any movies that return as 'skipped' from library sync calls

IsTitleMatch ( string title, string otherTitle, int year ) : bool

Compares two titles of an episode/movie, excluding any year component in the title

IsValidImdb ( string id ) : bool

Validates an IMDb ID

ShowRateDialog ( VideoInfo videoInfo ) : void

Shows the Rate Dialog after playback has ended

StartScrobble ( VideoInfo videoInfo ) : void

Starts scrobbling on trakt.tv

StartScrobbleEpisode ( VideoInfo videoInfo ) : bool

Starts scrobbling an episode on trakt.tv

StartScrobbleMovie ( VideoInfo videoInfo ) : bool

Starts scrobbling a movie from a videoInfo object

StopScrobble ( VideoInfo videoInfo, bool watched = false ) : void

Stops scrobbing a movie on trakt.tv

StopScrobbleEpisode ( VideoInfo videoInfo, bool watched = false ) : bool

Stops scrobbing an episode on trakt.tv

StopScrobbleMovie ( VideoInfo videoInfo, bool watched = false ) : bool

Stops scrobbing a movie on trakt.tv