diff --git a/src/main/java/com/rarchives/ripme/ripper/rippers/video/PornhubRipper.java b/src/main/java/com/rarchives/ripme/ripper/rippers/video/PornhubRipper.java index 3721362f..7f10323d 100644 --- a/src/main/java/com/rarchives/ripme/ripper/rippers/video/PornhubRipper.java +++ b/src/main/java/com/rarchives/ripme/ripper/rippers/video/PornhubRipper.java @@ -69,9 +69,9 @@ public class PornhubRipper extends VideoRipper { vidUrl = null; for (String quality : new String[] {"quality_1080p", "quality_720p", "quality_480p", "quality_240p"}) { - Pattern pv = Pattern.compile("^.*var player_" + quality + " = '([^']*)'.*$", Pattern.DOTALL); - Matcher mv = pv.matcher(html); - if (mv.matches()) { + Pattern pv = Pattern.compile("^.*var player_" + quality + " = '([^']*)'.*$", Pattern.DOTALL); + Matcher mv = pv.matcher(html); + if (mv.matches()) { vidUrl = mv.group(1); break; } diff --git a/src/main/java/com/rarchives/ripme/ui/QueueMenuMouseListener.java b/src/main/java/com/rarchives/ripme/ui/QueueMenuMouseListener.java index c487cc64..cd085d20 100644 --- a/src/main/java/com/rarchives/ripme/ui/QueueMenuMouseListener.java +++ b/src/main/java/com/rarchives/ripme/ui/QueueMenuMouseListener.java @@ -27,12 +27,12 @@ public class QueueMenuMouseListener extends MouseAdapter { removeSelected = new AbstractAction("Remove Selected") { @Override public void actionPerformed(ActionEvent ae) { - Object o = queueList.getSelectedValue(); - while (o != null) { - queueListModel.removeElement(o); - o = queueList.getSelectedValue(); - } - updateUI(); + Object o = queueList.getSelectedValue(); + while (o != null) { + queueListModel.removeElement(o); + o = queueList.getSelectedValue(); + } + updateUI(); } }; popup.add(removeSelected); @@ -40,8 +40,8 @@ public class QueueMenuMouseListener extends MouseAdapter { clearQueue = new AbstractAction("Remove All") { @Override public void actionPerformed(ActionEvent ae) { - queueListModel.removeAllElements(); - updateUI(); + queueListModel.removeAllElements(); + updateUI(); } }; popup.add(clearQueue); diff --git a/src/main/java/com/rarchives/ripme/utils/RipUtils.java b/src/main/java/com/rarchives/ripme/utils/RipUtils.java index 710c681e..f7a8960b 100644 --- a/src/main/java/com/rarchives/ripme/utils/RipUtils.java +++ b/src/main/java/com/rarchives/ripme/utils/RipUtils.java @@ -46,7 +46,7 @@ public class RipUtils { return result; } else if (url.getHost().endsWith("imgur.com") && url.toExternalForm().contains(",")) { - // Imgur image series. + // Imgur image series. try { logger.debug("Fetching imgur series at " + url); ImgurAlbum imgurAlbum = ImgurRipper.getImgurSeries(url);