Auto optimisations/cleanups performed by Android Studio... (#7)

* Auto optimisations/cleanups performed by Android Studio...

* Fixed indentation:  uses spaces instead of tabs
This commit is contained in:
Ramon 2017-05-16 21:53:11 +02:00 committed by TheAssassin
parent 5907c35dfb
commit 122c464bb4
4 changed files with 4 additions and 16 deletions

View File

@ -23,7 +23,7 @@ import java.io.Serializable;
*/ */
public interface InfoItem extends Serializable{ public interface InfoItem extends Serializable{
public enum InfoType { enum InfoType {
STREAM, STREAM,
PLAYLIST, PLAYLIST,
CHANNEL CHANNEL

View File

@ -171,11 +171,7 @@ public class YoutubeChannelExtractor extends ChannelExtractor {
@Override @Override
public boolean isAd() throws ParsingException { public boolean isAd() throws ParsingException {
if(!li.select("span[class*=\"icon-not-available\"]").isEmpty()) { return !li.select("span[class*=\"icon-not-available\"]").isEmpty();
return true;
} else {
return false;
}
} }
@Override @Override

View File

@ -818,11 +818,7 @@ public class YoutubeStreamExtractor extends StreamExtractor {
@Override @Override
public boolean isAd() throws ParsingException { public boolean isAd() throws ParsingException {
if(!li.select("span[class*=\"icon-not-available\"]").isEmpty()) { return !li.select("span[class*=\"icon-not-available\"]").isEmpty();
return true;
} else {
return false;
}
} }
@Override @Override

View File

@ -164,11 +164,7 @@ public class YoutubeStreamInfoItemExtractor implements StreamInfoItemExtractor {
@Override @Override
public boolean isAd() throws ParsingException { public boolean isAd() throws ParsingException {
if(!item.select("span[class*=\"icon-not-available\"]").isEmpty()) { return !item.select("span[class*=\"icon-not-available\"]").isEmpty();
return true;
} else {
return false;
}
} }
private boolean isLiveStream(Element item) { private boolean isLiveStream(Element item) {