mirror of
https://github.com/TeamNewPipe/NewPipeExtractor.git
synced 2025-01-07 10:00:34 +05:30
Fix error with livestreams.
This commit is contained in:
parent
11eb4932f4
commit
d1054338d3
@ -954,10 +954,10 @@ public class YoutubeStreamExtractor extends StreamExtractor {
|
|||||||
int height = formatData.getInt("height");
|
int height = formatData.getInt("height");
|
||||||
JsonObject initRange = formatData.getObject("initRange");
|
JsonObject initRange = formatData.getObject("initRange");
|
||||||
JsonObject indexRange = formatData.getObject("indexRange");
|
JsonObject indexRange = formatData.getObject("indexRange");
|
||||||
int initStart = Integer.parseInt(initRange.getString("start"));
|
int initStart = Integer.parseInt(initRange.getString("start", "-1"));
|
||||||
int initEnd = Integer.parseInt(initRange.getString("end"));
|
int initEnd = Integer.parseInt(initRange.getString("end", "-1"));
|
||||||
int indexStart = Integer.parseInt(indexRange.getString("start"));
|
int indexStart = Integer.parseInt(indexRange.getString("start", "-1"));
|
||||||
int indexEnd = Integer.parseInt(indexRange.getString("end"));
|
int indexEnd = Integer.parseInt(indexRange.getString("end", "-1"));
|
||||||
int fps = formatData.getInt("fps");
|
int fps = formatData.getInt("fps");
|
||||||
String mimeType = formatData.getString("mimeType", EMPTY_STRING);
|
String mimeType = formatData.getString("mimeType", EMPTY_STRING);
|
||||||
String codec = mimeType.contains("codecs") ? mimeType.split("\"")[1] : EMPTY_STRING;
|
String codec = mimeType.contains("codecs") ? mimeType.split("\"")[1] : EMPTY_STRING;
|
||||||
|
Loading…
Reference in New Issue
Block a user