Class BandcampChannelTabLinkHandlerFactory

    • Method Detail

      • getUrlSuffix

        @Nonnull
        public static java.lang.String getUrlSuffix​(@Nonnull
                                                    java.lang.String tab)
                                             throws UnsupportedTabException
        Get a tab's URL suffix.

        These URLs don't actually exist on the Bandcamp website, as both albums and tracks are listed on the main page, but redirect to the main page, which is perfect for us as we need a unique URL for each tab.

        Parameters:
        tab - the tab value, which must not be null
        Returns:
        a URL suffix
        Throws:
        UnsupportedTabException - if the tab is not supported
      • getUrl

        public java.lang.String getUrl​(java.lang.String id,
                                       java.util.List<java.lang.String> contentFilter,
                                       java.lang.String sortFilter)
                                throws ParsingException,
                                       java.lang.UnsupportedOperationException
        Specified by:
        getUrl in class ListLinkHandlerFactory
        Throws:
        ParsingException
        java.lang.UnsupportedOperationException
      • getAvailableContentFilter

        public java.lang.String[] getAvailableContentFilter()
        Description copied from class: ListLinkHandlerFactory
        Will returns content filter the corresponding extractor can handle like "channels", "videos", "music", etc.
        Overrides:
        getAvailableContentFilter in class ListLinkHandlerFactory
        Returns:
        filter that can be applied when building a query for getting a list