Skip to content

Commit 1d15369

Browse files
authored
Merge pull request #346 from lklynet/feature/stable-playlist-order-2
Use filepath ordering for weekly flow playlists
2 parents f20eb60 + afb5617 commit 1d15369

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

backend/services/weeklyFlowPlaylistManager.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,8 @@ export class WeeklyFlowPlaylistManager {
211211
: [pathCondition];
212212
const payload = {
213213
all,
214-
sort: "random",
214+
// Keep playlist order stable as tracks are added over time.
215+
sort: "filepath",
215216
limit: 1000,
216217
};
217218
await fs.writeFile(nspPath, JSON.stringify(payload), "utf8");

0 commit comments

Comments
 (0)