mirror of
https://github.com/TeamNewPipe/NewPipeExtractor
synced 2025-08-30 13:57:46 +00:00
update peertube instance
This commit is contained in:
@@ -26,7 +26,7 @@ public class PeertubeInstance {
|
|||||||
setInstanceMetaData(response);
|
setInstanceMetaData(response);
|
||||||
}
|
}
|
||||||
|
|
||||||
private PeertubeInstance(String url , String name) {
|
public PeertubeInstance(String url , String name) {
|
||||||
this.url = url;
|
this.url = url;
|
||||||
this.name = name;
|
this.name = name;
|
||||||
}
|
}
|
||||||
|
@@ -140,6 +140,15 @@ public class PeertubeService extends StreamingService {
|
|||||||
this.getServiceInfo().setName("PeerTube");
|
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
|
@Override
|
||||||
public KioskList getKioskList() throws ExtractionException {
|
public KioskList getKioskList() throws ExtractionException {
|
||||||
|
Reference in New Issue
Block a user