[Bandcamp] Use same url for tracks and albums channel tabs
This commit is contained in:
parent
0c5fdaca7e
commit
6a38811af8
|
@ -18,7 +18,6 @@ import org.schabi.newpipe.extractor.exceptions.ReCaptchaException;
|
||||||
import org.schabi.newpipe.extractor.linkhandler.ChannelTabs;
|
import org.schabi.newpipe.extractor.linkhandler.ChannelTabs;
|
||||||
import org.schabi.newpipe.extractor.linkhandler.ListLinkHandler;
|
import org.schabi.newpipe.extractor.linkhandler.ListLinkHandler;
|
||||||
import org.schabi.newpipe.extractor.linkhandler.ReadyChannelTabListLinkHandler;
|
import org.schabi.newpipe.extractor.linkhandler.ReadyChannelTabListLinkHandler;
|
||||||
import org.schabi.newpipe.extractor.services.bandcamp.linkHandler.BandcampChannelTabLinkHandlerFactory;
|
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
|
@ -123,9 +122,8 @@ public class BandcampChannelExtractor extends ChannelExtractor {
|
||||||
|
|
||||||
if (discography.stream().anyMatch(o -> (
|
if (discography.stream().anyMatch(o -> (
|
||||||
(JsonObject) o).getString("item_type").equals("album"))) {
|
(JsonObject) o).getString("item_type").equals("album"))) {
|
||||||
tabs.add(new ReadyChannelTabListLinkHandler(
|
tabs.add(new ReadyChannelTabListLinkHandler(getUrl(), getId(),
|
||||||
getUrl() + BandcampChannelTabLinkHandlerFactory.URL_SUFFIX,
|
ChannelTabs.ALBUMS, builder));
|
||||||
getId(), ChannelTabs.ALBUMS, builder));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return tabs;
|
return tabs;
|
||||||
|
|
Loading…
Reference in New Issue