FreeRapid

FreeRapid Downloader is a special tool for downloading files from public share file archives like RapidShare.com, FileFactory.com or Uploaded.to and others.

How we check your bug reports...

Tasklist

FS#1331 - Hotfile Premium Plugin error

Attached to Project: FreeRapid
Opened by Boldi (boldi) - Sunday, 23 May 2010, 14:10 GMT+1
Last edited by Vity (Vity) - Friday, 10 September 2010, 20:42 GMT+1
Task Type Bug Report
Category Download Plugins
Status Closed
Assigned To No-one
Operating System All
Severity Critical
Priority Normal
Reported Version 0.83
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Dear Support Team!

New Hotfile Premium v1.0 plugin not working correctly!
Please fix the bug!

http://hotfile.com/dl/43275698/22f5ba8/Portable_CoffeeCup_7x1_2010.rar.html

This task depends upon

Closed by  Vity (Vity)
Friday, 10 September 2010, 20:42 GMT+1
Reason for closing:  Implemented
Comment by ntoskrnl (ntoskrnl) - Sunday, 23 May 2010, 19:57 GMT+1

What error do you get?

Could you post your app.log?

Are you possibly Polish? HotFile shows a different site to Polish people IIRC.

Comment by Boldi (boldi) - Sunday, 23 May 2010, 20:09 GMT+1

ERROR - File name not found!
App.log: May 23, 2010 3:54:31 PM cz.vity.freerapid.plugins.webclient.utils.HttpUtils getFileName
WARNING: File name was not found in:attachment
May 23, 2010 3:54:31 PM cz.vity.freerapid.plugins.webclient.DownloadClient processFileForDownload
WARNING: No Content-Disposition (filename) header in file
May 23, 2010 6:00:18 PM cz.vity.freerapid.plugins.webclient.utils.HttpUtils getFileName
WARNING: File name was not found in:attachment
May 23, 2010 6:00:18 PM cz.vity.freerapid.plugins.webclient.DownloadClient processFileForDownload
WARNING: No Content-Disposition (filename) header in file
May 23, 2010 7:54:42 PM cz.vity.freerapid.plugins.webclient.utils.HttpUtils getFileName
WARNING: File name was not found in:attachment
May 23, 2010 7:54:42 PM cz.vity.freerapid.plugins.webclient.DownloadClient processFileForDownload
WARNING: No Content-Disposition (filename) header in file
May 23, 2010 7:58:34 PM cz.vity.freerapid.utilities.LogUtils processException
SEVERE: java.lang.IllegalStateException: cannot open system clipboard

at sun.awt.windows.WClipboard.openClipboard(Native Method)
at sun.awt.datatransfer.SunClipboard.getClipboardFormatsOpenClose(Unknown Source)
at sun.awt.datatransfer.SunClipboard.getAvailableDataFlavors(Unknown Source)
at cz.vity.freerapid.gui.managers.ClipboardMonitorManager.run(Unknown Source)

May 23, 2010 7:59:58 PM cz.vity.freerapid.utilities.LogUtils processException
SEVERE: java.lang.IllegalStateException: cannot open system clipboard

at sun.awt.windows.WClipboard.openClipboard(Native Method)
at sun.awt.datatransfer.SunClipboard.getClipboardFormatsOpenClose(Unknown Source)
at sun.awt.datatransfer.SunClipboard.getAvailableDataFlavors(Unknown Source)
at cz.vity.freerapid.gui.managers.ClipboardMonitorManager.run(Unknown Source)

May 23, 2010 9:03:16 PM cz.vity.freerapid.plugins.webclient.DownloadClient makeRequest
WARNING: Text content type expected, but binary stream was found
May 23, 2010 9:05:30 PM cz.vity.freerapid.core.tasks.DownloadTask failed
WARNING: Content from the last request
Text content type expected, but binary stream was found
May 23, 2010 9:05:30 PM cz.vity.freerapid.utilities.LogUtils processException
SEVERE: cz.vity.freerapid.plugins.exceptions.PluginImplementationException: File name not found

at cz.vity.freerapid.plugins.webclient.utils.PlugUtils.checkName(Unknown Source)
at cz.vity.freerapid.plugins.services.hotfile_premium.HotFileFileRunner.checkNameAndSize(Unknown Source)
at cz.vity.freerapid.plugins.services.hotfile_premium.HotFileFileRunner.run(Unknown Source)
at cz.vity.freerapid.plugins.webclient.AbstractFileShareService.run(Unknown Source)
at cz.vity.freerapid.core.tasks.DownloadTask.doInBackground(Unknown Source)
at cz.vity.freerapid.core.tasks.DownloadTask.doInBackground(Unknown Source)
at javax.swing.SwingWorker$1.call(Unknown Source)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at javax.swing.SwingWorker.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

Not, Hungarian...

Comment by k. bryan (skbryan) - Tuesday, 15 June 2010, 16:34 GMT+1

I have this problem as well. Error message is ERROR - File name not found. But the file opens up to save or run just fine from the browser. Any thoughts?

Comment by Piramix (piramix) - Thursday, 09 September 2010, 00:26 GMT+1

Premium account - I made a small change to the plugin - now it's working for me here is the code:

  public void run() throws Exception {
      super.run();
      addCookie(new Cookie(".hotfile.com", "lang", "en", "/", 86400, false));
      login();
          final HttpMethod httpMethod= getMethodBuilder().setAction(fileURL).toGetMethod();
          if (!tryDownloadAndSaveFile(httpMethod)) {
              checkProblems();
              logger.warning(getContentAsString());
              throw new ServiceConnectionProblemException("Error starting download");
          }
  }
  private void checkNameAndSize() throws ErrorDuringDownloadingException {
      final String content = getContentAsString();
      if (content.contains("<strong>Downloading:</strong>")) {
          PlugUtils.checkName(httpFile, content, "Downloading:</strong> ", " <span>");
          PlugUtils.checkFileSize(httpFile, content, "|</span> <strong>", "</strong>");
      } else {
          PlugUtils.checkName(httpFile, content, "Downloading <b>", "</b>");
          PlugUtils.checkFileSize(httpFile, content, "<span class=\"size\">| ", "</span>");
      }
      httpFile.setFileState(FileState.CHECKED_AND_EXISTING);
  }
Comment by Piramix (piramix) - Thursday, 09 September 2010, 12:26 GMT+1

Working version of hotfile_premium plugin
http://axiome.pl/hotfile_premium.frp http://axiome.pl/hotfile_premium.tgz

Loading...