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:
parent
5907c35dfb
commit
122c464bb4
4 changed files with 4 additions and 16 deletions
|
@ -23,7 +23,7 @@ import java.io.Serializable;
|
|||
*/
|
||||
|
||||
public interface InfoItem extends Serializable{
|
||||
public enum InfoType {
|
||||
enum InfoType {
|
||||
STREAM,
|
||||
PLAYLIST,
|
||||
CHANNEL
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue