Fix stdout
This commit is contained in:
@ -149,7 +149,8 @@ public class YoutubeTrackService {
|
|||||||
}, stdoutLine -> {
|
}, stdoutLine -> {
|
||||||
redisProgressService.<PlaylistProgress>updateTrackProgressField(playlistId, trackSource.getId(), userId,
|
redisProgressService.<PlaylistProgress>updateTrackProgressField(playlistId, trackSource.getId(), userId,
|
||||||
progress -> {
|
progress -> {
|
||||||
progress.setYtdlnStdout(String.join("\n", progress.getYtdlnStdout(), stdoutLine));
|
String previousStdout = progress.getYtdlnStdout() == null ? "" : progress.getYtdlnStdout();
|
||||||
|
progress.setYtdlnStdout(previousStdout + stdoutLine);
|
||||||
});
|
});
|
||||||
}, null);
|
}, null);
|
||||||
redisProgressService.<PlaylistProgress>updateTrackProgressField(playlistId, trackSource.getId(), userId,
|
redisProgressService.<PlaylistProgress>updateTrackProgressField(playlistId, trackSource.getId(), userId,
|
||||||
|
|||||||
Reference in New Issue
Block a user