Example #1
0
 /// <summary>
 /// Match a folder path to show in database
 /// </summary>
 /// <param name="rootFolder">Root folder content will belong to</param>
 /// <param name="path">Current path of content</param>
 /// <returns>Show from database that was matched, null if no match</returns>
 public bool PathMatch(string rootFolder, string path, bool fast, bool threaded, out TvShow match)
 {
     Content contentMatch;
     bool results = base.PathMatch(rootFolder, path, fast, threaded, out contentMatch, null);
     match = new TvShow(contentMatch);
     match.UpdateInfoFromDatabase();
     return results;
 }
Example #2
0
        /// <summary>
        /// Match a folder path to show in database
        /// </summary>
        /// <param name="rootFolder">Root folder content will belong to</param>
        /// <param name="path">Current path of content</param>
        /// <returns>Show from database that was matched, null if no match</returns>
        public bool PathMatch(string rootFolder, string path, bool fast, bool threaded, out TvShow match)
        {
            Content contentMatch;
            bool    results = base.PathMatch(rootFolder, path, fast, threaded, out contentMatch, null);

            match = new TvShow(contentMatch);
            match.UpdateInfoFromDatabase();
            return(results);
        }
Example #3
0
 /// <summary>
 /// Attempts to match string to show 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 show item, null if no match</returns>
 public bool ContentMatch(string search, string rootFolder, string folderPath, bool fast, bool threaded, out TvShow match)
 {
     Content contentMatch;
     bool results = base.ContentMatch(search, rootFolder, folderPath, fast, threaded, out contentMatch, null);
     match = new TvShow(contentMatch);
     if (results)
         match.UpdateInfoFromDatabase();
     return results;
 }
Example #4
0
        /// <summary>
        /// Attempts to match string to show 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 show item, null if no match</returns>
        public bool ContentMatch(string search, string rootFolder, string folderPath, bool fast, bool threaded, out TvShow match)
        {
            Content contentMatch;
            bool    results = base.ContentMatch(search, rootFolder, folderPath, fast, threaded, out contentMatch, null);

            match = new TvShow(contentMatch);
            if (results)
            {
                match.UpdateInfoFromDatabase();
            }
            return(results);
        }