Change t to transcodingJsonObject in SoundcloudStreamExtractor
This commit is contained in:
parent
0438828e36
commit
a7b15b51e6
1 changed files with 7 additions and 7 deletions
|
@ -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;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue