Skip to content

Commit

Permalink
more fixes for local tracks
Browse files Browse the repository at this point in the history
  • Loading branch information
vdesabou committed Mar 20, 2015
1 parent b08a960 commit 1750f6d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions spotify-mini-player/src/menu.php
Expand Up @@ -4004,8 +4004,7 @@ function secondDelimiterAlbums($w, $query, $settings, $db, $update_in_progress)
$track = $words[2];

$href = explode(':', $album_uri);
if ($href[1] == 'track') {

if ($href[1] == 'track' || $href[1] == 'local') {
$track_uri = $album_uri;
$album_uri = getAlbumUriFromTrack($w, $track_uri);
if ($album_uri == false) {
Expand All @@ -4015,6 +4014,7 @@ function secondDelimiterAlbums($w, $query, $settings, $db, $update_in_progress)
}
}


try {
if (mb_strlen($track) < 3) {
if ($all_playlists == false || count($tmp) == 3) {
Expand Down Expand Up @@ -4504,7 +4504,7 @@ function secondDelimiterOnline($w, $query, $settings, $db, $update_in_progress)
$album_name = $words[3];

$href = explode(':', $album_uri);
if ($href[1] == 'track') {
if ($href[1] == 'track' || $href[1] == 'local') {
$track_uri = $album_uri;
$album_uri = getAlbumUriFromTrack($w, $track_uri);
if ($album_uri == false) {
Expand Down

0 comments on commit 1750f6d

Please sign in to comment.