Commit 7623ce59 authored by Tang's avatar Tang

Fix issue introduces during previous commit

parent 4f4feba3
Pipeline #379 passed with stage
in 2 minutes and 30 seconds
......@@ -255,17 +255,17 @@ function device(agocontrol, obj, uuid) {
this.updateMediaInfos = function(infos)
{
//update cover first only if album is different
if( infos.data.cover && this.album()!=infos.data.album )
if( infos.cover && this.album()!=infos.album )
{
this.cover('data:image/jpeg;base64,' + infos.data.cover);
this.cover('data:image/jpeg;base64,' + infos.cover);
}
//update other infos
if( infos.data.title && infos.data.album && infos.data.artist )
if( infos.title && infos.album && infos.artist )
{
this.title(infos.data.title.substring(0,55));
this.album(infos.data.album);
this.artist(infos.data.artist);
this.title(infos.title.substring(0,55));
this.album(infos.album);
this.artist(infos.artist);
}
};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment