[Bandcamp] Use same url for tracks and albums channel tabs

This commit is contained in:
Stypox 2023-04-25 15:43:47 +02:00
parent 0c5fdaca7e
commit 6a38811af8
No known key found for this signature in database
GPG Key ID: 4BDF1B40A49FDD23
1 changed files with 2 additions and 4 deletions

View File

@ -18,7 +18,6 @@ import org.schabi.newpipe.extractor.exceptions.ReCaptchaException;
import org.schabi.newpipe.extractor.linkhandler.ChannelTabs;
import org.schabi.newpipe.extractor.linkhandler.ListLinkHandler;
import org.schabi.newpipe.extractor.linkhandler.ReadyChannelTabListLinkHandler;
import org.schabi.newpipe.extractor.services.bandcamp.linkHandler.BandcampChannelTabLinkHandlerFactory;
import java.io.IOException;
import java.util.ArrayList;
@ -123,9 +122,8 @@ public class BandcampChannelExtractor extends ChannelExtractor {
if (discography.stream().anyMatch(o -> (
(JsonObject) o).getString("item_type").equals("album"))) {
tabs.add(new ReadyChannelTabListLinkHandler(
getUrl() + BandcampChannelTabLinkHandlerFactory.URL_SUFFIX,
getId(), ChannelTabs.ALBUMS, builder));
tabs.add(new ReadyChannelTabListLinkHandler(getUrl(), getId(),
ChannelTabs.ALBUMS, builder));
}
return tabs;