[peertube] constant name for service
This commit is contained in:
parent
bc75c6603b
commit
281ccea39f
|
@ -48,7 +48,7 @@ public abstract class StreamingService {
|
|||
* This class holds meta information about the service implementation.
|
||||
*/
|
||||
public static class ServiceInfo {
|
||||
private String name;
|
||||
private final String name;
|
||||
|
||||
private final List<MediaCapability> mediaCapabilities;
|
||||
|
||||
|
@ -66,10 +66,6 @@ public abstract class StreamingService {
|
|||
return name;
|
||||
}
|
||||
|
||||
public void setName(String name) {
|
||||
this.name = name;
|
||||
}
|
||||
|
||||
public List<MediaCapability> getMediaCapabilities() {
|
||||
return mediaCapabilities;
|
||||
}
|
||||
|
|
|
@ -46,7 +46,7 @@ public class PeertubeService extends StreamingService {
|
|||
}
|
||||
|
||||
public PeertubeService(int id, PeertubeInstance instance) {
|
||||
super(id, instance.getName(), asList(VIDEO, COMMENTS));
|
||||
super(id, "PeerTube", asList(VIDEO, COMMENTS));
|
||||
this.instance = instance;
|
||||
}
|
||||
|
||||
|
@ -124,7 +124,6 @@ public class PeertubeService extends StreamingService {
|
|||
|
||||
public void setInstance(PeertubeInstance instance) {
|
||||
this.instance = instance;
|
||||
this.getServiceInfo().setName(instance.getName());
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
Loading…
Reference in New Issue