mirror of
https://github.com/TeamNewPipe/NewPipeExtractor.git
synced 2024-12-13 22:00:32 +05:30
Merge pull request #1200 from TeamNewPipe/bandcamp-fix-null-url-catenation
[Bandcamp] Null-safe url catenation in track playlist
This commit is contained in:
commit
87af6bb223
@ -43,7 +43,12 @@ public class BandcampPlaylistStreamInfoItemExtractor extends BandcampStreamInfoI
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String getUrl() {
|
public String getUrl() {
|
||||||
return getUploaderUrl() + track.getString("title_link");
|
final String relativeUrl = track.getString("title_link");
|
||||||
|
if (relativeUrl != null) {
|
||||||
|
return getUploaderUrl() + relativeUrl;
|
||||||
|
} else {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@ -66,7 +71,7 @@ public class BandcampPlaylistStreamInfoItemExtractor extends BandcampStreamInfoI
|
|||||||
@Nonnull
|
@Nonnull
|
||||||
@Override
|
@Override
|
||||||
public List<Image> getThumbnails() throws ParsingException {
|
public List<Image> getThumbnails() throws ParsingException {
|
||||||
if (substituteCovers.isEmpty()) {
|
if (substituteCovers.isEmpty() && getUrl() != null) {
|
||||||
try {
|
try {
|
||||||
final StreamExtractor extractor = service.getStreamExtractor(getUrl());
|
final StreamExtractor extractor = service.getStreamExtractor(getUrl());
|
||||||
extractor.fetchPage();
|
extractor.fetchPage();
|
||||||
|
Loading…
Reference in New Issue
Block a user