Bandcamp channel extractor: package-private access for getImageUrl(…)
This commit is contained in:
parent
8c70dab8c5
commit
b5e251c82f
|
@ -57,7 +57,7 @@ public class BandcampChannelExtractor extends ChannelExtractor {
|
|||
* @return Url of image with this ID in size 10 which is 1200x1200 (we could also choose size 0
|
||||
* but we don't want something as large as 3460x3460 here, do we?)
|
||||
*/
|
||||
public static String getImageUrl(long id, boolean album) {
|
||||
static String getImageUrl(long id, boolean album) {
|
||||
return "https://f4.bcbits.com/img/" + (album ? 'a' : "") + id + "_10.jpg";
|
||||
}
|
||||
|
||||
|
|
|
@ -32,12 +32,6 @@ public class BandcampChannelExtractorTest {
|
|||
noAvatarExtractor.fetchPage();
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testImageUrl() {
|
||||
assertEquals("https://f4.bcbits.com/img/a2405652335_10.jpg", BandcampChannelExtractor.getImageUrl(2405652335L, true));
|
||||
assertEquals("https://f4.bcbits.com/img/17433693_10.jpg", BandcampChannelExtractor.getImageUrl(17433693L, false));
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testTranslateIdsToUrl() throws ParsingException {
|
||||
assertEquals("https://zachbenson.bandcamp.com/album/covers", BandcampExtractorHelper.getStreamUrlFromIds(2862267535L, 2063639444L, "album"));
|
||||
|
|
Loading…
Reference in New Issue