From d493b60c8b661ff69c8885c0b383c9d91d786d03 Mon Sep 17 00:00:00 2001 From: poprhythm Date: Fri, 11 Sep 2026 22:09:45 +0000 Subject: [PATCH] subwave: default playlistExhaust=true for created shows, fixes repeats A playlistStrict show's no-repeat window scales down to a fraction of the playlist size and disables entirely below 15 tracks (recency.ts's effectiveNoRepeatWindow) -- every historical-chart playlist this script builds is well under that (7-30 tracks), so repeats were essentially unthrottled. playlistExhaust switches to a full-rotation window instead. Also applied this fix retroactively to all 8 existing shows. Claude-Session: https://claude.ai/code/session_01L7Rwa6guD5wK8F8tWQwcJX --- subwave/recreate_broadcast.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/subwave/recreate_broadcast.py b/subwave/recreate_broadcast.py index 8ee8f6c..f47e97a 100755 --- a/subwave/recreate_broadcast.py +++ b/subwave/recreate_broadcast.py @@ -342,6 +342,13 @@ def run(args): "guestPersonaIds": [], "playlistIds": [playlist_id], "playlistStrict": True, + # A playlist-pinned show's no-repeat window otherwise scales down to a + # fraction of the playlist size and disables entirely below 15 tracks + # (recency.ts's effectiveNoRepeatWindow) -- every playlist this script + # builds is well under that, so without this flag repeats are + # essentially unthrottled. playlistExhaust switches to a full-rotation + # window instead (nearly the whole playlist must play before a repeat). + "playlistExhaust": True, "filtersStrict": True, "moods": [], "genres": [], "energies": [], "eras": [], "excludedPlaylistIds": [],