Removed console.log() call and fixed bug with resuming playback after server restart.

This commit is contained in:
rainbow napkin 2025-02-12 07:48:47 -05:00
parent c8cd336c91
commit d60182ceae

View file

@ -709,7 +709,6 @@ module.exports = class{
async prepQueue(chanDB){
try{
console.log(this.schedule);
//If we didn't get handed a freebie
if(chanDB == null){
//Go out and get it done ourselves
@ -774,7 +773,7 @@ module.exports = class{
//If something was playing
if(chanDB.media.nowPlaying != null){
//Rehydrate the currently playing item
wasPlaying = chanDB.media.nowPlaying.rehydrate();
const wasPlaying = chanDB.media.nowPlaying.rehydrate();
//Schedule it
this.scheduleMedia(wasPlaying, null, true);