|
|
@ -275,13 +275,7 @@ public class PlayQueueService { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
// Remove non-present files
|
|
|
|
// Remove non-present files
|
|
|
|
Iterator<MediaFile> iterator = files.iterator(); |
|
|
|
files.removeIf(file -> !file.isPresent()); |
|
|
|
while (iterator.hasNext()) { |
|
|
|
|
|
|
|
MediaFile file = iterator.next(); |
|
|
|
|
|
|
|
if (!file.isPresent()) { |
|
|
|
|
|
|
|
iterator.remove(); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
Player player = getCurrentPlayer(request, response); |
|
|
|
Player player = getCurrentPlayer(request, response); |
|
|
|
return doPlay(request, player, files).setStartPlayerAt(0); |
|
|
|
return doPlay(request, player, files).setStartPlayerAt(0); |
|
|
|
} |
|
|
|
} |
|
|
|