Skip to content

Commit

Permalink
Add missing DURATION, SAMPLERATE and SAMPLESIZE parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
mherger committed Dec 13, 2015
1 parent 12e140e commit cc50c1b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Slim/Web/Pages/Playlist.pm
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ sub playlist {
}

# from BrwoseLibrary->_tracks: dtuxgaAsSliqyorf, k, cJK
my $tags = 'tags:xaAsSlLeN' . 'cJK';
my $tags = 'tags:xaAsSlLeNcJK';

# Some additional tags we might need to satisfy the title format
$titleFormat =~ /\bGENRE\b/ && ($tags .= 'g');
Expand All @@ -161,6 +161,9 @@ sub playlist {
$titleFormat =~ /\bCOMMENT\b/ && ($tags .= 'k');
$titleFormat =~ /\bYEAR\b/ && ($tags .= 'y');
$titleFormat =~ /\bBITRATE\b/ && ($tags .= 'r');
$titleFormat =~ /\bDURATION\b/ && ($tags .= 'd');
$titleFormat =~ /\bSAMPLERATE\b/ && ($tags .= 'T');
$titleFormat =~ /\bSAMPLESIZE\b/ && ($tags .= 'I');

my $includeAlbum = $titleFormat !~ /\bALBUM\b/;
my $includeArtist = $titleFormat !~ /\bARTIST\b/;
Expand Down

0 comments on commit cc50c1b

Please sign in to comment.