22
33import org .schabi .newpipe .extractor .NewPipe ;
44import org .schabi .newpipe .extractor .StreamingService ;
5+ import org .schabi .newpipe .extractor .uih .ListUIHFactory ;
6+ import org .schabi .newpipe .extractor .uih .ListUIHandler ;
57import org .schabi .newpipe .extractor .uih .UIHFactory ;
68import org .schabi .newpipe .extractor .exceptions .ExtractionException ;
79
@@ -23,24 +25,24 @@ KioskExtractor createNewKiosk(final StreamingService streamingService,
2325 private String defaultKiosk = null ;
2426
2527 private class KioskEntry {
26- public KioskEntry (KioskExtractorFactory ef , UIHFactory h ) {
28+ public KioskEntry (KioskExtractorFactory ef , ListUIHFactory h ) {
2729 extractorFactory = ef ;
2830 handlerFactory = h ;
2931 }
3032 final KioskExtractorFactory extractorFactory ;
31- final UIHFactory handlerFactory ;
33+ final ListUIHFactory handlerFactory ;
3234 }
3335
3436 public KioskList (int service_id ) {
3537 this .service_id = service_id ;
3638 }
3739
38- public void addKioskEntry (KioskExtractorFactory extractorFactory , UIHFactory handler , String id )
40+ public void addKioskEntry (KioskExtractorFactory extractorFactory , ListUIHFactory handlerFactory , String id )
3941 throws Exception {
4042 if (kioskList .get (id ) != null ) {
4143 throw new Exception ("Kiosk with type " + id + " already exists." );
4244 }
43- kioskList .put (id , new KioskEntry (extractorFactory , handler ));
45+ kioskList .put (id , new KioskEntry (extractorFactory , handlerFactory ));
4446 }
4547
4648 public void setDefaultKiosk (String kioskType ) {
@@ -92,7 +94,7 @@ public KioskExtractor getExtractorByUrl(String url, String nextPageUrl)
9294 throw new ExtractionException ("Could not find a kiosk that fits to the url: " + url );
9395 }
9496
95- public UIHFactory getUIHFactoryByType (String type ) {
97+ public ListUIHFactory getUIHFactoryByType (String type ) {
9698 return kioskList .get (type ).handlerFactory ;
9799 }
98100}
0 commit comments