mirror of
https://github.com/TeamPiped/Piped-Backend.git
synced 2024-08-14 23:51:41 +00:00
Filter out video tab from tabs.
This commit is contained in:
parent
234adf1255
commit
fc7d3dd2a5
1 changed files with 2 additions and 0 deletions
|
@ -18,6 +18,7 @@ import org.schabi.newpipe.extractor.channel.ChannelInfo;
|
|||
import org.schabi.newpipe.extractor.channel.ChannelTabInfo;
|
||||
import org.schabi.newpipe.extractor.exceptions.ExtractionException;
|
||||
import org.schabi.newpipe.extractor.exceptions.ParsingException;
|
||||
import org.schabi.newpipe.extractor.linkhandler.ChannelTabs;
|
||||
import org.schabi.newpipe.extractor.linkhandler.ListLinkHandler;
|
||||
import org.schabi.newpipe.extractor.stream.StreamInfoItem;
|
||||
|
||||
|
@ -138,6 +139,7 @@ public class ChannelHandlers {
|
|||
|
||||
List<ChannelTab> tabs = info.getTabs()
|
||||
.stream()
|
||||
.filter(tab -> !tab.getContentFilters().contains(ChannelTabs.VIDEOS))
|
||||
.map(tab -> {
|
||||
try {
|
||||
return new ChannelTab(tab.getContentFilters().get(0), mapper.writeValueAsString(tab));
|
||||
|
|
Loading…
Reference in a new issue