public override bool run()
        {
            JobWebPageDownload mainPageJob = new JobWebPageDownload(IMDBUtil.getURLToMovie(imdbID));
            mainPageJob.run();
            this.mainPage = mainPageJob.getResult();
            if(mainPage == null) {
                return false;
            }
            JobWebPageDownload awardsPageJob = new JobWebPageDownload(IMDBUtil.getAwardsURLToMovie(imdbID));
            awardsPageJob.run();
            this.awardsPage = awardsPageJob.getResult();
            if(awardsPage == null) {
                return false;
            }
            JobWebPageDownload creditsPageJob = new JobWebPageDownload(IMDBUtil.getFullcreditsURLToMovie(imdbID));
            creditsPageJob.run();
            this.creditsPage = creditsPageJob.getResult();
            if(creditsPage == null) {
                return false;
            }

            JobLoadImage imageJob = getPictureLoadJob();
            imageJob.run();
            this.movieData.poster = imageJob.getResult();

            JobImdbMovieParser parseJob = new JobImdbMovieParser(mainPage, creditsPage, awardsPage, movieData);
            parseJob.run();

            return true;
        }
示例#2
0
        public BoxOfficeSearchResultCollection searchOnBoxOffice()
        {
            JobWebPageDownload downloadJob = new JobWebPageDownload(String.Format(boxOfficeSearchAdress, query));
            downloadJob.run();
            website = downloadJob.getResult();

            if (website != null) {
                extractMovieMatches();
                extractPersonMatches();
            }
            return result;
        }