Convert tabs to spaces.

This commit is contained in:
MetaPrime 2017-05-09 17:34:57 -07:00
parent b6c925caae
commit eb979cc1f6
3 changed files with 12 additions and 12 deletions

View File

@ -69,9 +69,9 @@ public class PornhubRipper extends VideoRipper {
vidUrl = null; vidUrl = null;
for (String quality : new String[] {"quality_1080p", "quality_720p", "quality_480p", "quality_240p"}) { for (String quality : new String[] {"quality_1080p", "quality_720p", "quality_480p", "quality_240p"}) {
Pattern pv = Pattern.compile("^.*var player_" + quality + " = '([^']*)'.*$", Pattern.DOTALL); Pattern pv = Pattern.compile("^.*var player_" + quality + " = '([^']*)'.*$", Pattern.DOTALL);
Matcher mv = pv.matcher(html); Matcher mv = pv.matcher(html);
if (mv.matches()) { if (mv.matches()) {
vidUrl = mv.group(1); vidUrl = mv.group(1);
break; break;
} }

View File

@ -27,12 +27,12 @@ public class QueueMenuMouseListener extends MouseAdapter {
removeSelected = new AbstractAction("Remove Selected") { removeSelected = new AbstractAction("Remove Selected") {
@Override @Override
public void actionPerformed(ActionEvent ae) { public void actionPerformed(ActionEvent ae) {
Object o = queueList.getSelectedValue(); Object o = queueList.getSelectedValue();
while (o != null) { while (o != null) {
queueListModel.removeElement(o); queueListModel.removeElement(o);
o = queueList.getSelectedValue(); o = queueList.getSelectedValue();
} }
updateUI(); updateUI();
} }
}; };
popup.add(removeSelected); popup.add(removeSelected);
@ -40,8 +40,8 @@ public class QueueMenuMouseListener extends MouseAdapter {
clearQueue = new AbstractAction("Remove All") { clearQueue = new AbstractAction("Remove All") {
@Override @Override
public void actionPerformed(ActionEvent ae) { public void actionPerformed(ActionEvent ae) {
queueListModel.removeAllElements(); queueListModel.removeAllElements();
updateUI(); updateUI();
} }
}; };
popup.add(clearQueue); popup.add(clearQueue);

View File

@ -46,7 +46,7 @@ public class RipUtils {
return result; return result;
} }
else if (url.getHost().endsWith("imgur.com") && url.toExternalForm().contains(",")) { else if (url.getHost().endsWith("imgur.com") && url.toExternalForm().contains(",")) {
// Imgur image series. // Imgur image series.
try { try {
logger.debug("Fetching imgur series at " + url); logger.debug("Fetching imgur series at " + url);
ImgurAlbum imgurAlbum = ImgurRipper.getImgurSeries(url); ImgurAlbum imgurAlbum = ImgurRipper.getImgurSeries(url);