Add a comment
This commit is contained in:
parent
bf70d32eb4
commit
02810a7db7
1 changed files with 2 additions and 1 deletions
|
@ -171,7 +171,8 @@ public class SoundcloudPlaylistExtractor extends PlaylistExtractor {
|
||||||
|
|
||||||
try {
|
try {
|
||||||
final JsonArray tracks = JsonParser.array().from(response);
|
final JsonArray tracks = JsonParser.array().from(response);
|
||||||
// Response may not contain tracks in the same order as currentIds
|
// Response may not contain tracks in the same order as currentIds.
|
||||||
|
// The streams are displayed in the order which is used in currentIds on SoundCloud.
|
||||||
final HashMap<Integer, JsonObject> idToTrack = new HashMap<>();
|
final HashMap<Integer, JsonObject> idToTrack = new HashMap<>();
|
||||||
for (final Object track : tracks) {
|
for (final Object track : tracks) {
|
||||||
if (track instanceof JsonObject) {
|
if (track instanceof JsonObject) {
|
||||||
|
|
Loading…
Reference in a new issue