Minor code refactoring
This commit is contained in:
parent
1f8e9184c7
commit
af064ee435
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user