Skip to content
Snippets Groups Projects
Commit 13abc321 authored by Ondřej Trojan's avatar Ondřej Trojan
Browse files

added client playlist highlight

parent 41ed7d1e
No related branches found
No related tags found
No related merge requests found
......@@ -68,8 +68,8 @@ public class ClientService {
}
}
currentTrack = controlService.getTitle(connectedClient);
if (currentTrack.equals("")) {
log.info("No title to parse, title equals empty string");
if (currentTrack == null || currentTrack.equals("")) {
log.info("No title to parse, title equals empty or null string");
return;
}
String[] split = currentTrack.split("-");
......
......@@ -27,7 +27,7 @@
<dt class="col-sm-3">Playlist</dt>
<ol>
<li th:if="${track.playlist.isEmpty()}">Unknown</li>
<li th:text="${playTrack}" th:each="playTrack : ${track.playlist}" ></li>
<li th:classappend="${playTrack == track.displayTrack} ? font-weight-bolder : ''" th:text="${playTrack}" th:each="playTrack : ${track.playlist}" ></li>
</ol>
</div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment