remove type from kiosk and make getName() crawl the translated kiosk name

This commit is contained in:
Christian Schabesberger
2017-09-25 12:43:40 +02:00
parent 7beb90bf8a
commit 466d87ceb4
11 changed files with 79 additions and 74 deletions

View File

@@ -25,7 +25,7 @@ public class SoundcloudChartsExtractorTest {
NewPipe.init(Downloader.getInstance());
extractor = SoundCloud.getService()
.getKioskList()
.getExtractorByType("Top 50", null);
.getExtractorById("Top 50", null);
extractor.fetchPage();
}

View File

@@ -48,7 +48,7 @@ public class YoutubeServiceTest {
@Test
public void testGetKioskAvailableKiosks() throws Exception {
assertFalse("No kiosk got returned", kioskList.getAvailableKisokTypes().isEmpty());
assertFalse("No kiosk got returned", kioskList.getAvailableKisoks().isEmpty());
}
@Test

View File

@@ -54,7 +54,12 @@ public class YoutubeTreindingKioskInfoTest {
}
@Test
public void getType() {
assertEquals(kioskInfo.type, "Trending");
public void getId() {
assertEquals(kioskInfo.id, "Trending");
}
@Test
public void getName() {
assertFalse(kioskInfo.name.isEmpty());
}
}

View File

@@ -46,7 +46,7 @@ public class YoutubeTrendingExtractorTest {
NewPipe.init(Downloader.getInstance());
extractor = YouTube.getService()
.getKioskList()
.getExtractorByType("Trending", null);
.getExtractorById("Trending", null);
}
@Test
@@ -56,7 +56,8 @@ public class YoutubeTrendingExtractorTest {
@Test
public void testGetName() throws Exception {
assertEquals(extractor.getName(), "Trending");
System.out.println(extractor.getName());
assertFalse(extractor.getName().isEmpty());
}
@Test