fixes
This commit is contained in:
parent
4e559eeaa5
commit
aa9a7692e2
1 changed files with 7 additions and 1 deletions
|
@ -57,7 +57,7 @@ class Normal extends Command {
|
||||||
class Welcome extends Command {
|
class Welcome extends Command {
|
||||||
_processBuffer() {
|
_processBuffer() {
|
||||||
let line = this._getLine();
|
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();
|
let line = this._getLine();
|
||||||
if (!line) { return; }
|
if (!line) { return; }
|
||||||
this._lines.push(line);
|
this._lines.push(line);
|
||||||
|
|
||||||
|
if (line.startsWith("ACK")) { // no art!
|
||||||
|
this._done(this._lines);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
this._size = Number(line.split(": ").pop());
|
this._size = Number(line.split(": ").pop());
|
||||||
log("size", this._size);
|
log("size", this._size);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue