/// <summary> /// Attempts to match string to movie from the online database. /// </summary> /// <param name="search">Search string to match against</param> /// <param name="rootFolder">The root folder the content will belong to</param> /// <param name="folderPath">Folder path where the content should be moved to</param> /// <param name="threaded">Whether search is threaded, setting to false can help with debugging</param> /// <returns>Match movie item, null if no match</returns> public bool ContentMatch(string search, string rootFolder, string folderPath, bool fast, bool threaded, out Movie match, Movie knownContent) { Content contentMatch; bool results = base.ContentMatch(search, rootFolder, folderPath, fast, threaded, out contentMatch, knownContent); match = new Movie(contentMatch); if (results) { MovieDatabaseHelper.UpdateMovieInfo(match); } return(results); }
/// <summary> /// Match a folder path to movie in database /// </summary> /// <param name="rootFolder">Root folder content will belong to</param> /// <param name="path">Current path of content</param> /// <returns>Movie from database that was matched, null if no match</returns> public bool PathMatch(string rootFolder, string path, bool fast, bool threaded, out Movie match) { Content contentMatch; bool results = base.PathMatch(rootFolder, path, threaded, fast, out contentMatch, null); match = new Movie(contentMatch); if (match.Id > 0) { MovieDatabaseHelper.UpdateMovieInfo(match); } return(results); }
/// <summary> /// Updates properties from online database /// </summary> public override void UpdateInfoFromDatabase() { MovieDatabaseHelper.UpdateMovieInfo(this); }
/// <summary> /// Performs search for movie in database /// </summary> /// <param name="search">string to search for</param> /// <param name="includeSummaries">whether to get summary of each return search result</param> /// <returns>List of content matching search string from online database</returns> protected override List <Content> PerformSearch(string search, bool includeSummaries) { return(MovieDatabaseHelper.PerformMovieSearch(Settings.General.DefaultMovieDatabase, search, false)); }