WordRider Home
JumboFiles ERROR
May 23, 2012 05:04AM
Error when validating or starting download
Message :: no string between '' and '' was found


To Fix:
In File JumboFilesFileRunner.java --
# 1 - Change function to:

private void checkNameAndSize(String content) throws ErrorDuringDownloadingException {
httpFile.setFileName(PlugUtils.getStringBetween(content, "

Download File ", "

"));
PlugUtils.checkFileSize(httpFile, content, " (", ")");
httpFile.setFileState(FileState.CHECKED_AND_EXISTING);
}

# 2 - Copy and paste these lines, so this happens twice in a row, in function
public void run() throws Exception {
. . .
. . .
httpMethod = getMethodBuilder()
.setReferer(fileURL)
.setBaseURL(fileURL)
.setActionFromFormWhereTagContains("method_free", true)
.removeParameter("method_premium")
.toPostMethod();

if (!makeRedirectedRequest(httpMethod)) {
checkDownloadProblems();//if downloading failed
logger.warning(getContentAsString());//log the info
throw new PluginImplementationException();//some unknown problem
}
checkDownloadProblems();
. . .
. . .
}

And in plugin.xml ---
# 3 - Update version info line
id="jumbofiles.com" vendor="tong2shot+birchie" version="1.0.1">
Attachments:
open | download - jumbofiles.frp (5.5 KB)
Re: JumboFiles ERROR
May 23, 2012 11:00AM
Thanks, birchie! thumbs upsmiling smiley

I've committed and released the plugin.
Sorry, only registered users may post in this forum.

Click here to login