mirror of
https://github.com/TeamNewPipe/NewPipeExtractor
synced 2025-09-01 14:55:26 +00:00
fallback avatar for channel
This commit is contained in:
@@ -41,7 +41,12 @@ public class PeertubeChannelExtractor extends ChannelExtractor {
|
||||
|
||||
@Override
|
||||
public String getAvatarUrl() throws ParsingException {
|
||||
String value = JsonUtils.getString(json, "avatar.path");
|
||||
String value;
|
||||
try {
|
||||
value = JsonUtils.getString(json, "avatar.path");
|
||||
}catch(Exception e) {
|
||||
value = "/client/assets/images/default-avatar.png";
|
||||
}
|
||||
return ServiceList.PeerTube.getBaseUrl() + value;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user