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
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue