Skip to content

Commit 9fadf6e

Browse files
committed
[Soundcloud] Removed Top 50 as it no longer exists
1 parent 9a8a52b commit 9fadf6e

2 files changed

Lines changed: 0 additions & 56 deletions

File tree

extractor/src/main/java/org/schabi/newpipe/extractor/services/soundcloud/SoundcloudService.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,6 @@ public KioskList getKioskList() throws ExtractionException {
126126

127127
// add kiosks here e.g.:
128128
try {
129-
list.addKioskEntry(chartsFactory, h, "Top 50");
130129
list.addKioskEntry(chartsFactory, h, "New & hot");
131130
list.setDefaultKiosk("New & hot");
132131
} catch (final Exception e) {

extractor/src/test/java/org/schabi/newpipe/extractor/services/soundcloud/SoundcloudChartsExtractorTest.java

Lines changed: 0 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -67,59 +67,4 @@ public void testMoreRelatedItems() throws Exception {
6767
defaultTestMoreItems(extractor);
6868
}
6969
}
70-
71-
public static class Top50Charts implements BaseListExtractorTest {
72-
private static SoundcloudChartsExtractor extractor;
73-
74-
@BeforeAll
75-
public static void setUp() throws Exception {
76-
NewPipe.init(DownloaderTestImpl.getInstance());
77-
extractor = (SoundcloudChartsExtractor) SoundCloud.getKioskList()
78-
.getExtractorById("Top 50", null);
79-
extractor.fetchPage();
80-
}
81-
82-
/*//////////////////////////////////////////////////////////////////////////
83-
// Extractor
84-
//////////////////////////////////////////////////////////////////////////*/
85-
86-
@Test
87-
public void testServiceId() {
88-
assertEquals(SoundCloud.getServiceId(), extractor.getServiceId());
89-
}
90-
91-
@Test
92-
public void testName() {
93-
assertEquals("Top 50", extractor.getName());
94-
}
95-
96-
@Test
97-
public void testId() {
98-
assertEquals("Top 50", extractor.getId());
99-
}
100-
101-
@Test
102-
public void testUrl() throws ParsingException {
103-
assertEquals("https://soundcloud.com/charts/top", extractor.getUrl());
104-
}
105-
106-
@Test
107-
public void testOriginalUrl() throws ParsingException {
108-
assertEquals("https://soundcloud.com/charts/top", extractor.getOriginalUrl());
109-
}
110-
111-
/*//////////////////////////////////////////////////////////////////////////
112-
// ListExtractor
113-
//////////////////////////////////////////////////////////////////////////*/
114-
115-
@Test
116-
public void testRelatedItems() throws Exception {
117-
defaultTestRelatedItems(extractor);
118-
}
119-
120-
@Test
121-
public void testMoreRelatedItems() throws Exception {
122-
defaultTestMoreItems(extractor);
123-
}
124-
}
12570
}

0 commit comments

Comments
 (0)