1
0
mirror of https://github.com/Rogiel/httpchannel synced 2025-12-05 23:22:51 +00:00

Implements zshare.net and filesonic.com services

This commit is contained in:
2012-01-16 13:28:59 -02:00
parent 1719e54b77
commit e943b08ede
17 changed files with 33 additions and 44 deletions

View File

@@ -220,8 +220,7 @@ public class HotFileService extends AbstractHttpService implements Service,
protected class DownloaderImpl extends
AbstractHttpDownloader<NullDownloaderConfiguration> {
public DownloaderImpl(URL url,
NullDownloaderConfiguration configuration) {
public DownloaderImpl(URL url, NullDownloaderConfiguration configuration) {
super(url, configuration);
}

View File

@@ -276,7 +276,7 @@ public class UploadHereService extends AbstractHttpService implements Service,
@Override
public void logout() throws IOException {
post("http://www.uploadking.com/login").parameter("do", "logout")
post("http://www.uploadhere.com/login").parameter("do", "logout")
.request();
// TODO check logout status
}

View File

@@ -40,7 +40,7 @@ import com.rogiel.httpchannel.util.PatternUtils;
import com.rogiel.httpchannel.util.htmlparser.HTMLPage;
/**
* This service handles uploads to UploadKing.com.
* This service handles uploads to zshare.net.
*
* @author <a href="http://www.rogiel.com/">Rogiel</a>
* @since 1.0
@@ -103,7 +103,7 @@ public class UploadKingService extends AbstractHttpService implements Service,
@Override
public long getMaximumFilesize() {
return 1 * 1024 * 1024 * 1024;
return 500 * 1024 * 1024;
}
@Override
@@ -191,7 +191,7 @@ public class UploadKingService extends AbstractHttpService implements Service,
final String uploadID = page.getInputValue("UPLOAD_IDENTIFIER");
final LinkedUploadChannel channel = createLinkedChannel(this);
uploadFuture = multipartPost(url).parameter("file_0", channel)
uploadFuture = multipartPost(url).parameter("file", channel)
.parameter("u", userCookie)
.parameter("UPLOAD_IDENTIFIER", uploadID).asStringAsync();
return waitChannelLink(channel, uploadFuture);

View File

@@ -17,6 +17,9 @@
<module>httpchannel-service-megaupload</module>
<module>httpchannel-service-hotfile</module>
<module>httpchannel-service-multiupload</module>
<module>httpchannel-service-zshare</module>
<module>httpchannel-service-filesonic</module>
</modules>
<dependencies>