File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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}
Original file line number Diff line number Diff 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 }
Original file line number Diff line number Diff line change 2424import org .junit .Test ;
2525import org .schabi .newpipe .Downloader ;
2626import org .schabi .newpipe .extractor .NewPipe ;
27- import org .schabi .newpipe .extractor .exceptions .FoundAdException ;
2827import org .schabi .newpipe .extractor .exceptions .ParsingException ;
2928import org .schabi .newpipe .extractor .uih .UIHFactory ;
3029import org .schabi .newpipe .extractor .services .youtube .urlIdHandlers .YoutubeTrendingUIHFactory ;
3130
32- import java .text .ParseException ;
33-
3431import static junit .framework .TestCase .assertFalse ;
3532import static org .junit .Assert .assertEquals ;
3633import 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
You can’t perform that action at this time.
0 commit comments