Count private and deleted videos as ad
This commit is contained in:
parent
c7360e4a46
commit
1eca63089b
|
@ -60,8 +60,8 @@ public class YoutubeStreamInfoItemExtractor implements StreamInfoItemExtractor {
|
|||
}
|
||||
|
||||
@Override
|
||||
public boolean isAd() {
|
||||
return isPremium();
|
||||
public boolean isAd() throws ParsingException {
|
||||
return isPremium() || getName().equals("[Private video]") || getName().equals("[Deleted video]");
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in New Issue