Make text selectable
This commit is contained in:
parent
95e030cb40
commit
b4c5a8e07d
|
@ -365,7 +365,7 @@ public class PeertubeAPI {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
ArrayList<String> resolutions = new ArrayList<>();
|
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");
|
JSONArray files = resobj.getJSONArray("streamingPlaylists").getJSONObject(0).getJSONArray("files");
|
||||||
|
|
||||||
for (int j = 0; j < files.length(); j++) {
|
for (int j = 0; j < files.length(); j++) {
|
||||||
|
|
Loading…
Reference in New Issue