getUIHandler() to getUIHFactory()

handler to handlerFactory in kiosk
This commit is contained in:
Christian Schabesberger
2018-07-01 18:50:21 +02:00
parent bd5423fe2a
commit 291de18418
3 changed files with 8 additions and 11 deletions

View File

@@ -43,7 +43,7 @@ public class YoutubeTrendingKioskInfoTest {
throws Exception {
NewPipe.init(Downloader.getInstance());
StreamingService service = YouTube;
UIHFactory UIHFactory = service.getKioskList().getUrlIdHandlerByType("Trending");
UIHFactory UIHFactory = service.getKioskList().getUIHFactoryByType("Trending");
kioskInfo = KioskInfo.getInfo(YouTube, UIHFactory.fromId("Trending").getUrl(), null);
}

View File

@@ -24,13 +24,10 @@ import org.junit.BeforeClass;
import org.junit.Test;
import org.schabi.newpipe.Downloader;
import org.schabi.newpipe.extractor.NewPipe;
import org.schabi.newpipe.extractor.exceptions.FoundAdException;
import org.schabi.newpipe.extractor.exceptions.ParsingException;
import org.schabi.newpipe.extractor.uih.UIHFactory;
import org.schabi.newpipe.extractor.services.youtube.urlIdHandlers.YoutubeTrendingUIHFactory;
import java.text.ParseException;
import static junit.framework.TestCase.assertFalse;
import static org.junit.Assert.assertEquals;
import static org.junit.Assert.assertTrue;
@@ -44,7 +41,7 @@ public class YoutubeTrendingUIHFactoryTest {
@BeforeClass
public static void setUp() throws Exception {
UIHFactory = YouTube.getKioskList().getUrlIdHandlerByType("Trending");
UIHFactory = YouTube.getKioskList().getUIHFactoryByType("Trending");
NewPipe.init(Downloader.getInstance());
}