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 enum InfoType {
enum InfoType {
STREAM,
PLAYLIST,
CHANNEL

View file

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

View file

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

View file

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