From af064ee435f60365d56c2a94cb8567bd1c26d8f4 Mon Sep 17 00:00:00 2001 From: cyian-1756 Date: Wed, 27 Jun 2018 01:25:58 -0400 Subject: [PATCH] Minor code refactoring --- .../com/rarchives/ripme/ripper/rippers/GfycatRipper.java | 6 +++--- .../ripme/ripper/rippers/GfycatporntubeRipper.java | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/main/java/com/rarchives/ripme/ripper/rippers/GfycatRipper.java b/src/main/java/com/rarchives/ripme/ripper/rippers/GfycatRipper.java index 97afef94..a09d68ab 100644 --- a/src/main/java/com/rarchives/ripme/ripper/rippers/GfycatRipper.java +++ b/src/main/java/com/rarchives/ripme/ripper/rippers/GfycatRipper.java @@ -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); diff --git a/src/main/java/com/rarchives/ripme/ripper/rippers/GfycatporntubeRipper.java b/src/main/java/com/rarchives/ripme/ripper/rippers/GfycatporntubeRipper.java index 9010eb0e..55150d9e 100644 --- a/src/main/java/com/rarchives/ripme/ripper/rippers/GfycatporntubeRipper.java +++ b/src/main/java/com/rarchives/ripme/ripper/rippers/GfycatporntubeRipper.java @@ -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);