Skip to content

Commit 3a63af2

Browse files
authored
Merge pull request #42 from ShareASmile/fix/bandcamp-streame-extractor-test
[Bandcamp] Fix StreamExtractorTest
2 parents b8b8d65 + 1a3e57f commit 3a63af2

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
@@ -35,7 +35,7 @@ public static void setUp() throws ExtractionException, IOException {
3535
NewPipe.init(DownloaderTestImpl.getInstance());
3636

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

@@ -51,22 +51,22 @@ public StreamingService expectedService() {
5151

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

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

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

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

7272
@Override
@@ -159,7 +159,7 @@ public void testArtistProfilePicture() throws Exception {
159159
public void testTranslateIdsToUrl() throws ParsingException {
160160
// To add tests: look at website's source, search for `band_id` and `item_id`
161161
assertEquals(
162-
"https://teaganbear.bandcamp.com/track/just-for-the-halibut-creative-commons-attribution",
162+
"https://teaganbear.bandcamp.com/track/just-for-the-halibut",
163163
BandcampExtractorHelper.getStreamUrlFromIds(3877364987L, 3486455278L, "track")
164164
);
165165
}

0 commit comments

Comments
 (0)