Commit 41d71767 authored by Camilo Higuita's avatar Camilo Higuita

fix issue with retrieving music lyrics and get ready to review pulpo and brain system

parent b9bcec29
......@@ -134,6 +134,7 @@ void Babe::fetchTrackLyrics(DB &song)
auto lyrics = res[PULPO::ONTOLOGY::TRACK][PULPO::INFO::LYRICS][PULPO::CONTEXT::LYRIC].toString();
this->con->lyricsTrack(track, lyrics);
song.insert(KEY::LYRICS, lyrics);
qDebug()<<"GOT LYRICS"<<lyrics;
emit this->trackLyricsReady(song[KEY::LYRICS], song[KEY::URL]);
}
});
......
......@@ -176,7 +176,7 @@ bool Pulpo::initServices()
}
qDebug()<<"PULPO::ERROR HAPPENED!";
emit infoReady(this->track, this->packResponse(this->ontology, this->info, {{}}));
// emit infoReady(this->track, this->packResponse(this->ontology, this->info, {{}}));
}
return false;
......
......@@ -23,7 +23,7 @@ function playTrack(track)
var lyrics = root.mainPlaylist.currentTrack.lyrics
if(!lyrics)
if(!lyrics || lyrics.length === 0 || lyrics === "NONE" )
bae.trackLyrics(root.mainPlaylist.currentTrack.url)
else
root.mainPlaylist.infoView.lyrics = lyrics
......
......@@ -100,6 +100,7 @@ ItemDelegate
onDoubleClicked: artworkCoverDoubleClicked()
onClicked: artworkCoverClicked()
onPressAndHold: if(bae.isMobile()) artworkCoverDoubleClicked()
}
}
......
......@@ -329,6 +329,8 @@ Item
text: "00:00"
color: bae.foregroundColor()
font.pointSize: 8
elide: Text.ElideRight
}
Label
......@@ -342,6 +344,7 @@ Item
text: currentTrack ? (currentTrack.title ? currentTrack.title + " - " + currentTrack.artist : "--- - "+currentTrack.artist) : ""
color: bae.foregroundColor()
font.pointSize: 8
elide: Text.ElideRight
}
Label
......@@ -355,6 +358,8 @@ Item
text: "00:00"
color: bae.foregroundColor()
font.pointSize: 8
elide: Text.ElideRight
}
Slider
......
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