Browse Source

fixes

master
Ondrej Zara 3 years ago
parent
commit
aa9a7692e2
  1. 8
      commands.js

8
commands.js

@ -57,7 +57,7 @@ class Normal extends Command {
class Welcome extends Command {
_processBuffer() {
let line = this._getLine();
if (line) { this._done(line); }
if (line) { this._done([line]); }
}
}
@ -78,6 +78,12 @@ class AlbumArt extends Command {
let line = this._getLine();
if (!line) { return; }
this._lines.push(line);
if (line.startsWith("ACK")) { // no art!
this._done(this._lines);
return;
}
this._size = Number(line.split(": ").pop());
log("size", this._size);
}

Loading…
Cancel
Save