Make text selectable

This commit is contained in:
tom79 2020-03-07 16:17:28 +01:00
parent 95e030cb40
commit b4c5a8e07d
1 changed files with 1 additions and 1 deletions

View File

@ -365,7 +365,7 @@ public class PeertubeAPI {
e.printStackTrace();
}
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++) {