Minor code refactoring

This commit is contained in:
cyian-1756 2018-06-27 01:25:58 -04:00
parent 1f8e9184c7
commit af064ee435
2 changed files with 6 additions and 6 deletions

View File

@ -19,6 +19,9 @@ import com.rarchives.ripme.utils.Http;
public class GfycatRipper extends AbstractHTMLRipper {
private int bytesTotal = 1;
private int bytesCompleted = 1;
private static final String HOST = "gfycat.com";
public GfycatRipper(URL url) throws IOException {
@ -107,9 +110,6 @@ public class GfycatRipper extends AbstractHTMLRipper {
return vidUrl;
}
private int bytesTotal = 1;
private int bytesCompleted = 1;
@Override
public String getStatusText() {
return Utils.getByteStatusText(getCompletionPercentage(), bytesCompleted, bytesTotal);

View File

@ -17,6 +17,9 @@ import com.rarchives.ripme.utils.Http;
public class GfycatporntubeRipper extends AbstractHTMLRipper {
private int bytesTotal = 1;
private int bytesCompleted = 1;
public GfycatporntubeRipper(URL url) throws IOException {
super(url);
}
@ -60,9 +63,6 @@ public class GfycatporntubeRipper extends AbstractHTMLRipper {
addURLToDownload(url, getPrefix(index));
}
private int bytesTotal = 1;
private int bytesCompleted = 1;
@Override
public String getStatusText() {
return Utils.getByteStatusText(getCompletionPercentage(), bytesCompleted, bytesTotal);