diff --git a/.travis.yml b/.travis.yml index ec29c38..ed86b4a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -22,7 +22,6 @@ env: - TOX_ENV=tidy before_install: - - "sudo sed -i '/127.0.1.1/d' /etc/hosts" # Workaround https://github.com/tornadoweb/tornado/issues/1573 - "sudo apt-get update -qq" install: diff --git a/README.rst b/README.rst index 00b7699..fadb6ff 100644 --- a/README.rst +++ b/README.rst @@ -108,11 +108,13 @@ Changelog (UNRELEASED) ------------ +- Detect additional stream formats (rtmp, rtmps, rtsp). +- Include details of currently selected page in HTML title tag. (Addresses: `#243 `_). + **Fixes** -- Detect additional stream formats (rtmp, rtmps, rtsp). - Prevent excessive calls to the Mopidy server while buffering. (Fixes: `#237 `_). -- Include details of currently selected page in HTML title tag. (Addresses: `#243 `_). +- Only allow browsing tracks by album if a URI is available for that album. (Fixes: `#250 `_). v2.4.0 (2017-03-15) ------------------- diff --git a/mopidy_musicbox_webclient/static/js/functionsvars.js b/mopidy_musicbox_webclient/static/js/functionsvars.js index aae009d..1990ca8 100644 --- a/mopidy_musicbox_webclient/static/js/functionsvars.js +++ b/mopidy_musicbox_webclient/static/js/functionsvars.js @@ -306,8 +306,12 @@ function renderSongLiDivider (previousTrack, track, nextTrack, target) { // Render differently if part of an album. if (!hasSameAlbum(previousTrack, track) && hasSameAlbum(track, nextTrack)) { // Large divider with album cover. + showAlbum = '' + if (typeof track.album.uri !== 'undefined') { + showAlbum = 'onclick="return library.showAlbum(\'' + track.album.uri + '\', mopidy);"' + } html += - '
  • ' + + '
  • ' + '' + '

    ' + track.album.name + '

    ' + renderSongLiTrackArtists(track) + '

  • ' diff --git a/tox.ini b/tox.ini index 22ff53e..ab606f9 100644 --- a/tox.ini +++ b/tox.ini @@ -14,7 +14,7 @@ deps = pytest-cov pytest-xdist responses -install_command = pip install --allow-unverified=mopidy --pre {opts} {packages} +install_command = pip install --pre {opts} {packages} commands = py.test \ --basetemp={envtmpdir} \