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;
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;
}

View File

@ -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);

View File

@ -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);