update peertube instance
This commit is contained in:
parent
b2c6928459
commit
a83342de0f
|
@ -26,7 +26,7 @@ public class PeertubeInstance {
|
|||
setInstanceMetaData(response);
|
||||
}
|
||||
|
||||
private PeertubeInstance(String url , String name) {
|
||||
public PeertubeInstance(String url , String name) {
|
||||
this.url = url;
|
||||
this.name = name;
|
||||
}
|
||||
|
|
|
@ -140,6 +140,15 @@ public class PeertubeService extends StreamingService {
|
|||
this.getServiceInfo().setName("PeerTube");
|
||||
}
|
||||
}
|
||||
|
||||
public void setInstance(String url, String name) throws IOException {
|
||||
this.instance = new PeertubeInstance(url, name);
|
||||
if(!StringUtil.isBlank(instance.getName())) {
|
||||
this.getServiceInfo().setName(instance.getName());
|
||||
}else {
|
||||
this.getServiceInfo().setName("PeerTube");
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public KioskList getKioskList() throws ExtractionException {
|
||||
|
|
Loading…
Reference in New Issue