fix error

This commit is contained in:
FireMasterK 2021-01-20 21:16:29 +05:30
parent e0b0dc946a
commit 2d1853d6a5
No known key found for this signature in database
GPG key ID: 8DFF5DD33E93DB58

View file

@ -25,7 +25,6 @@ import org.schabi.newpipe.extractor.exceptions.ParsingException;
import org.schabi.newpipe.extractor.kiosk.KioskInfo;
import org.schabi.newpipe.extractor.playlist.PlaylistInfo;
import org.schabi.newpipe.extractor.search.SearchInfo;
import org.schabi.newpipe.extractor.stream.Stream;
import org.schabi.newpipe.extractor.stream.StreamInfo;
import org.schabi.newpipe.extractor.stream.StreamInfoItem;
@ -95,7 +94,7 @@ public class ResponseHelper {
if (hls != null) {
Stream<String> resp = Constants.h2client
java.util.stream.Stream<String> resp = Constants.h2client
.send(HttpRequest.newBuilder(URI.create(hls)).GET().build(), BodyHandlers.ofLines()).body();
ObjectArrayList<String> lines = new ObjectArrayList<>();
resp.forEach(line -> lines.add(line));