diff --git a/extractor/src/main/java/org/schabi/newpipe/extractor/StreamingService.java b/extractor/src/main/java/org/schabi/newpipe/extractor/StreamingService.java index edc132542..ad22642db 100644 --- a/extractor/src/main/java/org/schabi/newpipe/extractor/StreamingService.java +++ b/extractor/src/main/java/org/schabi/newpipe/extractor/StreamingService.java @@ -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 mediaCapabilities; @@ -66,10 +66,6 @@ public abstract class StreamingService { return name; } - public void setName(String name) { - this.name = name; - } - public List getMediaCapabilities() { return mediaCapabilities; } diff --git a/extractor/src/main/java/org/schabi/newpipe/extractor/services/peertube/PeertubeService.java b/extractor/src/main/java/org/schabi/newpipe/extractor/services/peertube/PeertubeService.java index 9d247abc2..29bd1db71 100644 --- a/extractor/src/main/java/org/schabi/newpipe/extractor/services/peertube/PeertubeService.java +++ b/extractor/src/main/java/org/schabi/newpipe/extractor/services/peertube/PeertubeService.java @@ -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