Fix LBRY stream extraction.

This commit is contained in:
FireMasterK 2021-07-28 13:33:39 +05:30
parent f66e77330e
commit 17dc0aa1ac
No known key found for this signature in database
GPG key ID: 49451E4482CC5BCD

View file

@ -908,7 +908,7 @@ public class ResponseHelper {
.getJSONObject("data").getJSONObject("videos").optString(videoId); .getJSONObject("data").getJSONObject("videos").optString(videoId);
if (!lbryId.isEmpty()) if (!lbryId.isEmpty())
new JSONObject(Constants.h2client.send(HttpRequest return new JSONObject(Constants.h2client.send(HttpRequest
.newBuilder(URI.create("https://api.lbry.tv/api/v1/proxy?m=get")) .newBuilder(URI.create("https://api.lbry.tv/api/v1/proxy?m=get"))
.POST(BodyPublishers.ofString( .POST(BodyPublishers.ofString(
String.valueOf(new JSONObject().put("jsonrpc", "2.0").put("method", "get").put("params", String.valueOf(new JSONObject().put("jsonrpc", "2.0").put("method", "get").put("params",