public static void RemoveMovieFromLibrary(string title, int? year, string imdbid, int? tmdbid, int? traktid)
{
if (!GUICommon.CheckLogin(false)) return;
var movie = new TraktMovie
{
Ids = new TraktMovieId
{
Trakt = traktid,
Imdb = imdbid,
Tmdb = tmdbid
},
Title = title,
Year = year
};
var syncThread = new Thread((objSyncData) =>
{
var response = TraktAPI.TraktAPI.RemoveMovieFromCollection(objSyncData as TraktMovie);
})
{
IsBackground = true,
Name = "RemoveCollection"
};
syncThread.Start(movie);
TraktCache.RemoveMovieFromCollection(movie);
}