Count private and deleted videos as ad

This commit is contained in:
wb9688 2020-02-24 12:55:51 +01:00 committed by TobiGr
parent c7360e4a46
commit 1eca63089b
1 changed files with 2 additions and 2 deletions

View File

@ -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