Ignore:
Timestamp:
2010-05-18T20:03:54+12:00 (14 years ago)
Author:
ak19
Message:

The Download Progress Pane used to say Download Complete almost immediately upon starting a download and while this was still in progress. This was a problem found with OAI download, but is now also fixed with the Web download mode. Tested with both.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/gli/src/org/greenstone/gatherer/download/DownloadJob.java

    r20924 r22103  
    387387                // Add download
    388388                String new_url = line.substring(line.indexOf("`") + 1, line.lastIndexOf("'"));
    389                 //addDownload("http:/" + new_url);
     389                progress.addDownload("file"); //addDownload("http:/" + new_url.substring(cachedir_prefix_length()-1));             
    390390            }
    391391            }
     
    415415            String new_url =
    416416                line.substring(line.indexOf("`") + 1, line.lastIndexOf("'"));
    417             //addDownload("http:/" + new_url);
     417            progress.addDownload("file"); //addDownload("http:/" + new_url.substring(cachedir_prefix_length()-1));
    418418            downloadWarning();
    419419            }
     
    435435            String total_ID = line.substring(line.indexOf(":") + 1, line.indexOf(">"));
    436436            progress.setTotalDownload((Integer.valueOf(total_ID)).intValue());
    437             progress.resetFileCount();
     437            progress.resetFileCount(); 
     438            progress.addDownload("files"); // for display: "Downloading files"
    438439            }
    439440            else if (line.lastIndexOf("<<Done>>") != -1) {
     
    456457        if(state == STOPPED) {
    457458        boolean terminatePerlScript = true;
    458        
     459           
    459460        // When GLI is working with wget-based download modes other than OAI (MediaWiki and Web
    460461        // download) and the STOP button has been pressed, wget needs to be prematurely terminated.
Note: See TracChangeset for help on using the changeset viewer.