Change t to transcodingJsonObject in SoundcloudStreamExtractor

This commit is contained in:
TiA4f8R 2021-03-03 13:03:38 +01:00
parent 0438828e36
commit a7b15b51e6
No known key found for this signature in database
GPG key ID: E6D3E7F5949450DD

View file

@ -200,9 +200,9 @@ public class SoundcloudStreamExtractor extends StreamExtractor {
boolean mp3ProgressiveStreamInTranscodings = false; boolean mp3ProgressiveStreamInTranscodings = false;
for (final Object transcoding : transcodings) { for (final Object transcoding : transcodings) {
final JsonObject t = (JsonObject) transcoding; final JsonObject transcodingJsonObject = (JsonObject) transcoding;
if (t.getString("preset").contains("mp3") && if (transcodingJsonObject.getString("preset").contains("mp3") &&
t.getObject("format").getString("protocol").equals("progressive")) { transcodingJsonObject.getObject("format").getString("protocol").equals("progressive")) {
mp3ProgressiveStreamInTranscodings = true; mp3ProgressiveStreamInTranscodings = true;
break; break;
} }
@ -210,11 +210,11 @@ public class SoundcloudStreamExtractor extends StreamExtractor {
// Get information about what stream formats are available // Get information about what stream formats are available
for (final Object transcoding : transcodings) { for (final Object transcoding : transcodings) {
final JsonObject t = (JsonObject) transcoding; final JsonObject transcodingJsonObject = (JsonObject) transcoding;
final String mediaUrl; final String mediaUrl;
final String preset = t.getString("preset"); final String preset = transcodingJsonObject.getString("preset");
final String protocol = t.getObject("format").getString("protocol"); final String protocol = transcodingJsonObject.getObject("format").getString("protocol");
String url = t.getString("url"); String url = transcodingJsonObject.getString("url");
final MediaFormat mediaFormat; final MediaFormat mediaFormat;
final int bitrate; final int bitrate;