112 lines
4.7 KiB
Java
112 lines
4.7 KiB
Java
|
package org.schabi.newpipe.extractor.services.xh;
|
||
|
|
||
|
import java.util.Arrays;
|
||
|
import java.util.List;
|
||
|
import org.schabi.newpipe.extractor.StreamingService;
|
||
|
import static org.schabi.newpipe.extractor.StreamingService.ServiceInfo.MediaCapability.VIDEO;
|
||
|
import org.schabi.newpipe.extractor.channel.ChannelExtractor;
|
||
|
import org.schabi.newpipe.extractor.comments.CommentsExtractor;
|
||
|
import org.schabi.newpipe.extractor.exceptions.ExtractionException;
|
||
|
import org.schabi.newpipe.extractor.kiosk.KioskList;
|
||
|
import org.schabi.newpipe.extractor.linkhandler.LinkHandler;
|
||
|
import org.schabi.newpipe.extractor.linkhandler.LinkHandlerFactory;
|
||
|
import org.schabi.newpipe.extractor.linkhandler.ListLinkHandler;
|
||
|
import org.schabi.newpipe.extractor.linkhandler.ListLinkHandlerFactory;
|
||
|
import org.schabi.newpipe.extractor.linkhandler.SearchQueryHandler;
|
||
|
import org.schabi.newpipe.extractor.linkhandler.SearchQueryHandlerFactory;
|
||
|
import org.schabi.newpipe.extractor.playlist.PlaylistExtractor;
|
||
|
import org.schabi.newpipe.extractor.search.SearchExtractor;
|
||
|
import org.schabi.newpipe.extractor.services.xh.extractors.XhStreamExtractor;
|
||
|
import org.schabi.newpipe.extractor.stream.StreamExtractor;
|
||
|
import org.schabi.newpipe.extractor.subscription.SubscriptionExtractor;
|
||
|
import org.schabi.newpipe.extractor.suggestion.SuggestionExtractor;
|
||
|
|
||
|
public class XhService extends StreamingService {
|
||
|
|
||
|
// name
|
||
|
final static String NAME = "Xhamsters";
|
||
|
|
||
|
// host
|
||
|
public final static String HOST = "xhamster18.desi";
|
||
|
public final static String BASE_URL = "https://" + HOST + "/";
|
||
|
|
||
|
|
||
|
// constructor
|
||
|
public XhService(final int id) {
|
||
|
super(id, NAME, Arrays.asList(VIDEO));
|
||
|
}
|
||
|
|
||
|
public XhService(int id, String name, List<ServiceInfo.MediaCapability> capabilities) {
|
||
|
super(id, NAME, Arrays.asList(VIDEO));
|
||
|
}
|
||
|
|
||
|
@Override
|
||
|
public String getBaseUrl() {
|
||
|
return BASE_URL;
|
||
|
}
|
||
|
|
||
|
@Override
|
||
|
public LinkHandlerFactory getStreamLHFactory() {
|
||
|
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
|
||
|
}
|
||
|
|
||
|
@Override
|
||
|
public ListLinkHandlerFactory getChannelLHFactory() {
|
||
|
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
|
||
|
}
|
||
|
|
||
|
@Override
|
||
|
public ListLinkHandlerFactory getPlaylistLHFactory() {
|
||
|
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
|
||
|
}
|
||
|
|
||
|
@Override
|
||
|
public SearchQueryHandlerFactory getSearchQHFactory() {
|
||
|
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
|
||
|
}
|
||
|
|
||
|
@Override
|
||
|
public ListLinkHandlerFactory getCommentsLHFactory() {
|
||
|
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
|
||
|
}
|
||
|
|
||
|
@Override
|
||
|
public SearchExtractor getSearchExtractor(SearchQueryHandler queryHandler) {
|
||
|
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
|
||
|
}
|
||
|
|
||
|
@Override
|
||
|
public SuggestionExtractor getSuggestionExtractor() {
|
||
|
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
|
||
|
}
|
||
|
|
||
|
@Override
|
||
|
public SubscriptionExtractor getSubscriptionExtractor() {
|
||
|
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
|
||
|
}
|
||
|
|
||
|
@Override
|
||
|
public KioskList getKioskList() throws ExtractionException {
|
||
|
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
|
||
|
}
|
||
|
|
||
|
@Override
|
||
|
public ChannelExtractor getChannelExtractor(ListLinkHandler linkHandler) throws ExtractionException {
|
||
|
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
|
||
|
}
|
||
|
|
||
|
@Override
|
||
|
public PlaylistExtractor getPlaylistExtractor(ListLinkHandler linkHandler) throws ExtractionException {
|
||
|
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
|
||
|
}
|
||
|
|
||
|
@Override
|
||
|
public StreamExtractor getStreamExtractor(LinkHandler linkHandler) throws ExtractionException {
|
||
|
return new XhStreamExtractor(this, linkHandler);
|
||
|
}
|
||
|
|
||
|
@Override
|
||
|
public CommentsExtractor getCommentsExtractor(ListLinkHandler linkHandler) throws ExtractionException {
|
||
|
throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
|
||
|
}
|
||
|
}
|