mirror of
https://github.com/mirror/jdownloader.git
synced 2024-11-27 05:50:51 +00:00
git-svn-id: svn://svn.jdownloader.org/jdownloader/trunk@49509 ebf7c1c2-ba36-0410-9fe8-c592906822b4
Former-commit-id: 21ae18166aec415effc5a0d5ca9e679244b718c6
This commit is contained in:
parent
241d1c4681
commit
5975245aaf
@ -20,15 +20,6 @@ import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Random;
|
||||
|
||||
import org.appwork.storage.TypeRef;
|
||||
import org.appwork.utils.StringUtils;
|
||||
import org.appwork.utils.encoding.Base64;
|
||||
import org.appwork.utils.parser.UrlQuery;
|
||||
import org.bouncycastle.crypto.digests.SHA1Digest;
|
||||
import org.bouncycastle.crypto.macs.HMac;
|
||||
import org.bouncycastle.crypto.params.KeyParameter;
|
||||
import org.jdownloader.plugins.controller.LazyPlugin;
|
||||
|
||||
import jd.PluginWrapper;
|
||||
import jd.http.Browser;
|
||||
import jd.nutils.encoding.Encoding;
|
||||
@ -41,6 +32,15 @@ import jd.plugins.LinkStatus;
|
||||
import jd.plugins.PluginException;
|
||||
import jd.plugins.PluginForHost;
|
||||
|
||||
import org.appwork.storage.TypeRef;
|
||||
import org.appwork.utils.StringUtils;
|
||||
import org.appwork.utils.encoding.Base64;
|
||||
import org.appwork.utils.parser.UrlQuery;
|
||||
import org.bouncycastle.crypto.digests.SHA1Digest;
|
||||
import org.bouncycastle.crypto.macs.HMac;
|
||||
import org.bouncycastle.crypto.params.KeyParameter;
|
||||
import org.jdownloader.plugins.controller.LazyPlugin;
|
||||
|
||||
@HostPlugin(revision = "$Revision$", interfaceVersion = 2, names = {}, urls = {})
|
||||
public class AudioMackComHoster extends PluginForHost {
|
||||
public AudioMackComHoster(PluginWrapper wrapper) {
|
||||
@ -179,7 +179,9 @@ public class AudioMackComHoster extends PluginForHost {
|
||||
if (durationSecondsStr != null && durationSecondsStr.matches("\\d+")) {
|
||||
/* Estimate filesize */
|
||||
final int durationSeconds = Integer.parseInt(durationSecondsStr);
|
||||
link.setDownloadSize(256 * 1024l / 8 * durationSeconds);
|
||||
if (durationSeconds > 0) {
|
||||
link.setDownloadSize(256 * 1024l / 8 * durationSeconds);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user