Exemplo n.º 1
0
 private void startParse(uint imdbID)
 {
     ConcurrentIMDBNameParser p = new ConcurrentIMDBNameParser(imdbID);
     p.setFinalizeFunction(parseFinished);
     ThreadsMaster.getInstance().addJobMaster(p);
 }
Exemplo n.º 2
0
        private void imdbWebBrowser_Navigating(object sender, NavigatingCancelEventArgs e)
        {
            string url = e.Uri.ToString();
            if (!Regex.Match(url, @"imdb\.com").Success) {
                imdbWebBrowser.Navigate(lastURL);
                return;
            }
            setButton("add", false);
            lastParser = null;
            lastURL = url;

            if (IMDBUtil.isMovieUrl(url)) {
                ConcurrentImdbMovieParser parser = new ConcurrentImdbMovieParser(IMDBUtil.getTitleIdFromUrl(url));
                parser.setFinalizeFunction(this.updateActionButton);
                ThreadsMaster.getInstance().addVeryVeryImportantThreadMaster(parser);
            } else if (IMDBUtil.isNameURL(url)) {
                ConcurrentIMDBNameParser parser = new ConcurrentIMDBNameParser(IMDBUtil.getNameIdFromUrl(url));
                parser.setFinalizeFunction(this.updateActionButton);
                ThreadsMaster.getInstance().addVeryVeryImportantThreadMaster(parser);
            } else {
                updateActionButton(null);
            }
        }
Exemplo n.º 3
0
 public void insertPersonInDB(ConcurrentIMDBNameParser parser)
 {
 }