Skip to content

Commit d2be2ed

Browse files
MrDesjardinsclaude
andcommitted
Fix playQueue() to handle summary items correctly
The Play Queue button was always calling startStreamFromQueue() without checking the item type. Now it checks if the first item is a summary and calls the appropriate function (startSummaryFromQueue or startStreamFromQueue). This matches the behavior of playNext() and clicking on individual queue items. Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
1 parent 96f64cd commit d2be2ed

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

static/app.js

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -806,9 +806,15 @@ async function playQueue() {
806806
return;
807807
}
808808

809-
// Start streaming the first item
809+
// Start streaming the first item (check type)
810810
const firstItem = queue[0];
811-
await startStreamFromQueue(firstItem.youtube_id, firstItem.id);
811+
const itemType = firstItem.type || 'youtube';
812+
813+
if (itemType === 'summary') {
814+
await startSummaryFromQueue(firstItem.week_year, firstItem.id);
815+
} else {
816+
await startStreamFromQueue(firstItem.youtube_id, firstItem.id);
817+
}
812818
}
813819

814820
async function playNext() {

templates/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ <h2>
218218
<script src="/static/update-checker.js?v=1737842302"></script>
219219

220220
<!-- Main Application Script -->
221-
<script src="/static/app.js?v=1770738923"></script>
221+
<script src="/static/app.js?v=1770739211"></script>
222222
</body>
223223

224224
</html>

0 commit comments

Comments
 (0)