Support for old Peertube releases
This commit is contained in:
parent
81555ecd9c
commit
95e030cb40
|
@ -360,7 +360,7 @@ public class API {
|
|||
}
|
||||
|
||||
ArrayList<String> resolutions = new ArrayList<>();
|
||||
if( resobj.has("streamingPlaylists")){
|
||||
if( resobj.has("streamingPlaylists") && resobj.getJSONArray("streamingPlaylists").length() > 0){
|
||||
JSONArray files = resobj.getJSONArray("streamingPlaylists").getJSONObject(0).getJSONArray("files");
|
||||
|
||||
for (int j = 0; j < files.length(); j++) {
|
||||
|
|
Loading…
Reference in New Issue