Removed console.log() call and fixed bug with resuming playback after server restart.
This commit is contained in:
parent
c8cd336c91
commit
d60182ceae
|
|
@ -709,7 +709,6 @@ module.exports = class{
|
||||||
|
|
||||||
async prepQueue(chanDB){
|
async prepQueue(chanDB){
|
||||||
try{
|
try{
|
||||||
console.log(this.schedule);
|
|
||||||
//If we didn't get handed a freebie
|
//If we didn't get handed a freebie
|
||||||
if(chanDB == null){
|
if(chanDB == null){
|
||||||
//Go out and get it done ourselves
|
//Go out and get it done ourselves
|
||||||
|
|
@ -774,7 +773,7 @@ module.exports = class{
|
||||||
//If something was playing
|
//If something was playing
|
||||||
if(chanDB.media.nowPlaying != null){
|
if(chanDB.media.nowPlaying != null){
|
||||||
//Rehydrate the currently playing item
|
//Rehydrate the currently playing item
|
||||||
wasPlaying = chanDB.media.nowPlaying.rehydrate();
|
const wasPlaying = chanDB.media.nowPlaying.rehydrate();
|
||||||
|
|
||||||
//Schedule it
|
//Schedule it
|
||||||
this.scheduleMedia(wasPlaying, null, true);
|
this.scheduleMedia(wasPlaying, null, true);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue