mirror of
https://github.com/TeamNewPipe/NewPipeExtractor.git
synced 2025-04-27 23:40:36 +05:30
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
|
@Override
|
||||||
public boolean isAd() {
|
public boolean isAd() throws ParsingException {
|
||||||
return isPremium();
|
return isPremium() || getName().equals("[Private video]") || getName().equals("[Deleted video]");
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
x
Reference in New Issue
Block a user