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;
}
Aggregations