diff --git a/static/js/podcasts-web.js b/static/js/podcasts-web.js index 075b08c..a6b2df1 100644 --- a/static/js/podcasts-web.js +++ b/static/js/podcasts-web.js @@ -453,6 +453,7 @@ this.leftMs = 0; setFade(1); pause(); + stopRadio(); // the radio sleeps too (it plays in app.js's element) return; } if (this.leftMs < FADE_MS) setFade(Math.max(this.leftMs / FADE_MS, 0.1)); @@ -758,7 +759,8 @@ if (playing && Date.now() - lastSaved > 10000) saveNow(id, true); if (playing) skipOutro(id); } - sleep.tick(playing); + // The sleep timer counts while either plays (radio and podcasts share the player). + sleep.tick(playing || radioPlaying()); if (playing || sleep.leftMs > 0) report(); }, 1000);