Skip to content

Commit cf542db

Browse files
committed
getUIHandler() to getUIHFactory()
1 parent bd5423f commit cf542db

3 files changed

Lines changed: 3 additions & 6 deletions

File tree

extractor/src/main/java/org/schabi/newpipe/extractor/kiosk/KioskList.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ public KioskExtractor getExtractorByUrl(String url, String nextPageUrl)
9292
throw new ExtractionException("Could not find a kiosk that fits to the url: " + url);
9393
}
9494

95-
public UIHFactory getUrlIdHandlerByType(String type) {
95+
public UIHFactory getUIHFactoryByType(String type) {
9696
return kioskList.get(type).handler;
9797
}
9898
}

extractor/src/test/java/org/schabi/newpipe/extractor/services/youtube/YoutubeTrendingKioskInfoTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public static void setUp()
4343
throws Exception {
4444
NewPipe.init(Downloader.getInstance());
4545
StreamingService service = YouTube;
46-
UIHFactory UIHFactory = service.getKioskList().getUrlIdHandlerByType("Trending");
46+
UIHFactory UIHFactory = service.getKioskList().getUIHFactoryByType("Trending");
4747

4848
kioskInfo = KioskInfo.getInfo(YouTube, UIHFactory.fromId("Trending").getUrl(), null);
4949
}

extractor/src/test/java/org/schabi/newpipe/extractor/services/youtube/YoutubeTrendingUIHFactoryTest.java

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,10 @@
2424
import org.junit.Test;
2525
import org.schabi.newpipe.Downloader;
2626
import org.schabi.newpipe.extractor.NewPipe;
27-
import org.schabi.newpipe.extractor.exceptions.FoundAdException;
2827
import org.schabi.newpipe.extractor.exceptions.ParsingException;
2928
import org.schabi.newpipe.extractor.uih.UIHFactory;
3029
import org.schabi.newpipe.extractor.services.youtube.urlIdHandlers.YoutubeTrendingUIHFactory;
3130

32-
import java.text.ParseException;
33-
3431
import static junit.framework.TestCase.assertFalse;
3532
import static org.junit.Assert.assertEquals;
3633
import static org.junit.Assert.assertTrue;
@@ -44,7 +41,7 @@ public class YoutubeTrendingUIHFactoryTest {
4441

4542
@BeforeClass
4643
public static void setUp() throws Exception {
47-
UIHFactory = YouTube.getKioskList().getUrlIdHandlerByType("Trending");
44+
UIHFactory = YouTube.getKioskList().getUIHFactoryByType("Trending");
4845
NewPipe.init(Downloader.getInstance());
4946
}
5047

0 commit comments

Comments
 (0)