added instance getter

This commit is contained in:
yausername 2019-11-24 03:38:27 +05:30
parent 281ccea39f
commit 6a7680ce17
1 changed files with 4 additions and 4 deletions

View File

@ -4,11 +4,7 @@ import static java.util.Arrays.asList;
import static org.schabi.newpipe.extractor.StreamingService.ServiceInfo.MediaCapability.COMMENTS; import static org.schabi.newpipe.extractor.StreamingService.ServiceInfo.MediaCapability.COMMENTS;
import static org.schabi.newpipe.extractor.StreamingService.ServiceInfo.MediaCapability.VIDEO; import static org.schabi.newpipe.extractor.StreamingService.ServiceInfo.MediaCapability.VIDEO;
import java.io.IOException;
import java.util.List;
import org.schabi.newpipe.extractor.StreamingService; import org.schabi.newpipe.extractor.StreamingService;
import org.schabi.newpipe.extractor.StreamingService.ServiceInfo.MediaCapability;
import org.schabi.newpipe.extractor.channel.ChannelExtractor; import org.schabi.newpipe.extractor.channel.ChannelExtractor;
import org.schabi.newpipe.extractor.comments.CommentsExtractor; import org.schabi.newpipe.extractor.comments.CommentsExtractor;
import org.schabi.newpipe.extractor.exceptions.ExtractionException; import org.schabi.newpipe.extractor.exceptions.ExtractionException;
@ -122,6 +118,10 @@ public class PeertubeService extends StreamingService {
return instance.getUrl(); return instance.getUrl();
} }
public PeertubeInstance getInstance() {
return this.instance;
}
public void setInstance(PeertubeInstance instance) { public void setInstance(PeertubeInstance instance) {
this.instance = instance; this.instance = instance;
} }