Bandcamp channel extractor: enforce https when getting banner url
This commit is contained in:
parent
a42c77425d
commit
7730eb2ea1
|
@ -71,7 +71,7 @@ public class BandcampChannelExtractor extends ChannelExtractor {
|
||||||
@Override
|
@Override
|
||||||
public String getBannerUrl() throws ParsingException {
|
public String getBannerUrl() throws ParsingException {
|
||||||
try {
|
try {
|
||||||
String html = getDownloader().get(channelInfo.getString("bandcamp_url"))
|
String html = getDownloader().get(channelInfo.getString("bandcamp_url").replace("http://", "https://"))
|
||||||
.responseBody();
|
.responseBody();
|
||||||
|
|
||||||
return new Document(html).getElementById("customHeader")
|
return new Document(html).getElementById("customHeader")
|
||||||
|
|
Loading…
Reference in New Issue