Search in sources :

Example 1 with UrlIdHandler

use of org.schabi.newpipe.extractor.UrlIdHandler in project NewPipe by TeamNewPipe.

the class KioskFragment method getInstance.

public static KioskFragment getInstance(int serviceId, String kioskId) throws ExtractionException {
    KioskFragment instance = new KioskFragment();
    StreamingService service = NewPipe.getService(serviceId);
    UrlIdHandler kioskTypeUrlIdHandler = service.getKioskList().getUrlIdHandlerByType(kioskId);
    instance.setInitialData(serviceId, kioskTypeUrlIdHandler.getUrl(kioskId), kioskId);
    instance.kioskId = kioskId;
    return instance;
}
Also used : StreamingService(org.schabi.newpipe.extractor.StreamingService) UrlIdHandler(org.schabi.newpipe.extractor.UrlIdHandler)

Aggregations

StreamingService (org.schabi.newpipe.extractor.StreamingService)1 UrlIdHandler (org.schabi.newpipe.extractor.UrlIdHandler)1