Minor formating improvements

This commit is contained in:
cyian-1756 2017-06-22 14:04:53 -04:00
parent 4ae28c3af3
commit a0e3307ffb

View File

@ -106,7 +106,7 @@ public class ImgurRipper extends AlbumRipper {
String title = null; String title = null;
logger.info("Trying to get album title"); logger.info("Trying to get album title");
elems = albumDoc.select("meta[property=og:title]"); elems = albumDoc.select("meta[property=og:title]");
if (elems!=null) { if (elems != null) {
title = elems.attr("content"); title = elems.attr("content");
logger.debug("Title is " + title); logger.debug("Title is " + title);
} }
@ -119,7 +119,7 @@ public class ImgurRipper extends AlbumRipper {
title = ""; title = "";
logger.debug("Trying to use title tag to get title"); logger.debug("Trying to use title tag to get title");
elems = albumDoc.select("title"); elems = albumDoc.select("title");
if (elems!=null) { if (elems != null) {
if (elems.text().contains("Imgur: The most awesome images on the Internet")) { if (elems.text().contains("Imgur: The most awesome images on the Internet")) {
logger.debug("Was unable to get album title or album was untitled"); logger.debug("Was unable to get album title or album was untitled");
} }