Skip to content

Commit 90aed06

Browse files
authored
Merge pull request #1105 from TeamNewPipe/fix/bandcamp-streame-extractor-test
[Badcamp] Fix StreamExtractorTest
2 parents 7c7ceac + cf49f4a commit 90aed06

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

extractor/src/test/java/org/schabi/newpipe/extractor/services/bandcamp/BandcampStreamExtractorTest.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ public static void setUp() throws ExtractionException, IOException {
3434
NewPipe.init(DownloaderTestImpl.getInstance());
3535

3636
extractor = (BandcampStreamExtractor) Bandcamp
37-
.getStreamExtractor("https://teaganbear.bandcamp.com/track/just-for-the-halibut-creative-commons-attribution");
37+
.getStreamExtractor("https://teaganbear.bandcamp.com/track/just-for-the-halibut");
3838
extractor.fetchPage();
3939
}
4040

@@ -50,22 +50,22 @@ public StreamingService expectedService() {
5050

5151
@Override
5252
public String expectedName() {
53-
return "Just for the Halibut [Creative Commons: Attribution]";
53+
return "Just for the Halibut";
5454
}
5555

5656
@Override
5757
public String expectedId() {
58-
return "https://teaganbear.bandcamp.com/track/just-for-the-halibut-creative-commons-attribution";
58+
return "https://teaganbear.bandcamp.com/track/just-for-the-halibut";
5959
}
6060

6161
@Override
6262
public String expectedUrlContains() {
63-
return "https://teaganbear.bandcamp.com/track/just-for-the-halibut-creative-commons-attribution";
63+
return "https://teaganbear.bandcamp.com/track/just-for-the-halibut";
6464
}
6565

6666
@Override
6767
public String expectedOriginalUrlContains() {
68-
return "https://teaganbear.bandcamp.com/track/just-for-the-halibut-creative-commons-attribution";
68+
return "https://teaganbear.bandcamp.com/track/just-for-the-halibut";
6969
}
7070

7171
@Override
@@ -157,7 +157,7 @@ void testArtistProfilePictures() {
157157
void testTranslateIdsToUrl() throws ParsingException {
158158
// To add tests: look at website's source, search for `band_id` and `item_id`
159159
assertEquals(
160-
"https://teaganbear.bandcamp.com/track/just-for-the-halibut-creative-commons-attribution",
160+
"https://teaganbear.bandcamp.com/track/just-for-the-halibut",
161161
BandcampExtractorHelper.getStreamUrlFromIds(3877364987L, 3486455278L, "track")
162162
);
163163
}

0 commit comments

Comments
 (0)