Exemplo n.º 1
0
        /// <summary>
        /// Searches bing for the scraper MovieUniqueId.
        /// </summary>
        /// <param name="query">The query.</param>
        /// <param name="threadID">The thread MovieUniqueId.</param>
        /// <param name="logCatagory">The log catagory.</param>
        /// <returns>[true/false] if an error occurred.</returns>
        public bool SearchViaBing(Query query, int threadID, string logCatagory)
        {
            query.Results = new BindingList <QueryResult>();

            try
            {
                if (query.Year == "0")
                {
                    query.Year = string.Empty;
                }

                query.Results = Bing.SearchBing(
                    string.Format(CultureInfo.CurrentCulture, BingSearchQuery, query.Title, query.Year),
                    BingMatchString,
                    threadID,
                    BingRegexMatchTitle,
                    BingRegexMatchYear,
                    BingRegexMatchID,
                    ScraperName);

                return(query.Results.Count > 0);
            }
            catch (Exception ex)
            {
                Log.WriteToLog(LogSeverity.Error, threadID, logCatagory, ex.Message);
                return(false);
            }
        }
Exemplo n.º 2
0
        /// <summary>
        /// Searches bing for the scraper MovieUniqueId.
        /// </summary>
        /// <param name="query">The query.</param>
        /// <param name="threadID">The thread MovieUniqueId.</param>
        /// <param name="logCatagory">The log catagory.</param>
        /// <returns>[true/false] if an error occurred.</returns>
        public new bool SearchViaBing(Query query, int threadID, string logCatagory)
        {
            try
            {
                query.Results = Bing.SearchBing(
                    string.Format("{0} site:http://www.filmaffinity.com/es", query.Title),
                    string.Empty,
                    threadID);

                return(query.Results.Count > 0);
            }
            catch (Exception ex)
            {
                Log.WriteToLog(LogSeverity.Error, threadID, logCatagory, ex.Message);
                return(false);
            }
        }
Exemplo n.º 3
0
        /// <summary>
        /// Searches bing for the scraper MovieUniqueId.
        /// </summary>
        /// <param name="query">The query.</param>
        /// <param name="threadID">The thread MovieUniqueId.</param>
        /// <param name="logCatagory">The log catagory.</param>
        /// <returns>[true/false] if an error occurred.</returns>
        public new bool SearchViaBing(Query query, int threadID, string logCatagory)
        {
            try
            {
                query.Results = Bing.SearchBing(
                    string.Format("{0} {1} site:filmup.leonardo.it/", query.Title, query.Year),
                    "http://filmup.leonardo.it/sc_",
                    threadID);

                return(query.Results.Count > 0);
            }
            catch (Exception ex)
            {
                Log.WriteToLog(LogSeverity.Error, threadID, logCatagory, ex.Message);
                return(false);
            }
        }
Exemplo n.º 4
0
        /// <summary>
        /// Searches Bing for Applicable MovieUniqueId's
        /// </summary>
        /// <param name="query">A BingQuery object.</param>
        /// <param name="threadID">The thread MovieUniqueId.</param>
        /// <param name="logCatagory">The log catagory.</param>
        /// <returns>[true/false] if an error occurred.</returns>
        public new bool SearchViaBing(Query query, int threadID, string logCatagory)
        {
            try
            {
                query.Results = Bing.SearchBing(
                    string.Format(CultureInfo.CurrentCulture, "site:http://www.allocine.fr {0}%20{1}", query.Title, query.Year),
                    "http://www.allocine.fr/film/fichefilm_gen_cfilm=",
                    threadID);

                return(query.Results.Count > 0);
            }
            catch (Exception ex)
            {
                Log.WriteToLog(LogSeverity.Error, threadID, logCatagory, ex.Message);
                return(false);
            }
        }
Exemplo n.º 5
0
        /// <summary>
        /// Searches bing for the scraper MovieUniqueId.
        /// </summary>
        /// <param name="query">The query.</param>
        /// <param name="threadID">The thread MovieUniqueId.</param>
        /// <param name="logCatagory">The log catagory.</param>
        /// <returns>[true/false] if an error occurred.</returns>
        public new bool SearchViaBing(Query query, int threadID, string logCatagory)
        {
            try
            {
                query.Results = Bing.SearchBing(
                    string.Format("{0}%20{1}%20site:www.impawards.com%20poster", query.Title, query.Year),
                    string.Empty,
                    threadID);

                return(query.Results.Count > 0);
            }
            catch (Exception ex)
            {
                Log.WriteToLog(LogSeverity.Error, threadID, logCatagory, ex.Message);
                return(false);
            }
        }
Exemplo n.º 6
0
        /// <summary>
        /// Searches Bing for Applicable MovieUniqueId's
        /// </summary>
        /// <param name="query">A BingQuery object.</param>
        /// <param name="threadID">The thread MovieUniqueId.</param>
        /// <param name="logCatagory">The log catagory.</param>
        /// <returns>[true/false] if an error occurred.</returns>
        public new bool SearchViaBing(Query query, int threadID, string logCatagory)
        {
            query.Results = new BindingList <QueryResult>();

            try
            {
                query.Results = Bing.SearchBing(
                    string.Format(CultureInfo.CurrentCulture, "{0} {1} site:www.themoviedb.org", query.Title, query.Year),
                    string.Empty,
                    threadID);

                return(query.Results.Count > 0);
            }
            catch (Exception ex)
            {
                Log.WriteToLog(LogSeverity.Error, threadID, logCatagory, ex.Message);
                return(false);
            }
        }
Exemplo n.º 7
0
        /// <summary>
        /// Searches bing for the scraper MovieUniqueId.
        /// </summary>
        /// <param name="query">The query.</param>
        /// <param name="threadID">The thread MovieUniqueId.</param>
        /// <param name="logCatagory">The log catagory.</param>
        /// <returns>
        /// [true/false] if an error occurred.
        /// </returns>
        public new bool SearchViaBing(Query query, int threadID, string logCatagory)
        {
            try
            {
                query.Results = Bing.SearchBing(
                    string.Format("{0} site:www.filmdelta.se/filmer/", query.Title),
                    "http://www.filmdelta.se/filmer/",
                    threadID,
                    @"(?<title>.*?)\s-\sFilmdelta\s-\sFilmdatabas\spå\ssvenska",
                    @"(?<title>.*?)\s\((?<year>\d{4})\)\s-\sFilmAffinity",
                    @"http://www.filmdelta.se/filmer/(?<id>\d{2,9}/.*?)/",
                    ScraperList.FilmAffinity);

                return(query.Results.Count > 0);
            }
            catch (Exception ex)
            {
                Log.WriteToLog(LogSeverity.Error, threadID, logCatagory, ex.Message);
                return(false);
            }
        }
Exemplo n.º 8
0
        /// <summary>
        /// Searches bing for the scraper MovieUniqueId.
        /// </summary>
        /// <param name="query">The query.</param>
        /// <param name="threadID">The thread MovieUniqueId.</param>
        /// <param name="logCatagory">The log catagory.</param>
        /// <returns>[true/false] if an error occurred.</returns>
        public new bool SearchViaBing(Query query, int threadID, string logCatagory)
        {
            try
            {
                query.Results = Bing.SearchBing(
                    string.Format("{0} site:www.kinopoisk.ru/level/1/", query.Title),
                    string.Empty,
                    threadID,
                    string.Empty,
                    string.Empty,
                    string.Empty,
                    ScraperList.Kinopoisk);

                return(query.Results.Count > 0);
            }
            catch (Exception ex)
            {
                Log.WriteToLog(LogSeverity.Error, threadID, logCatagory, ex.Message);
                return(false);
            }
        }
Exemplo n.º 9
0
        /// <summary>
        /// Searches bing for the scraper MovieUniqueId.
        /// </summary>
        /// <param name="query">The query.</param>
        /// <param name="threadID">The thread MovieUniqueId.</param>
        /// <param name="logCatagory">The log catagory.</param>
        /// <returns>[true/false] if an error occurred.</returns>
        public new bool SearchViaBing(Query query, int threadID, string logCatagory)
        {
            try
            {
                query.Results = Bing.SearchBing(
                    string.Format("{0} {1} site:http://www.filmaffinity.com/es", query.Title, query.Year),
                    "http://www.filmaffinity.com/es/film",
                    threadID,
                    @"(?<title>.*?)\s\((?<year>\d{4})\)\s-\sFilmAffinity",
                    @"(?<title>.*?)\s\((?<year>\d{4})\)\s-\sFilmAffinity",
                    @"http://www\.filmaffinity\.com/es/film(?<id>\d{6,9})\.html",
                    ScraperList.FilmAffinity);

                return(query.Results.Count > 0);
            }
            catch (Exception ex)
            {
                Log.WriteToLog(LogSeverity.Error, threadID, logCatagory, ex.Message);
                return(false);
            }
        }
Exemplo n.º 10
0
        /// <summary>
        /// Searches bing for the scraper MovieUniqueId.
        /// </summary>
        /// <param name="query">The query.</param>
        /// <param name="threadID">The thread MovieUniqueId.</param>
        /// <param name="logCatagory">The log catagory.</param>
        /// <returns>[true/false] if an error occurred.</returns>
        public new bool SearchViaBing(Query query, int threadID, string logCatagory)
        {
            try
            {
                query.Results =
                    Bing.SearchBing(
                        string.Format("{0} {1} site:filmup.leonardo.it/", query.Title, query.Year),
                        "http://filmup.leonardo.it/sc_",
                        threadID,
                        @"FilmUP\s-\sScheda:\s(?<title>.*?)$",
                        @"FilmUP\s-\sScheda:\s(?<title>.*?)$",
                        @"http://filmup\.leonardo\.it/sc_(?<id>.*?)\.htm",
                        ScraperList.FilmUp);

                return(query.Results.Count > 0);
            }
            catch (Exception ex)
            {
                Log.WriteToLog(LogSeverity.Error, threadID, logCatagory, ex.Message);
                return(false);
            }
        }