Bug 2412 - Playlist title incorrect with Perl 5.6
: Playlist title incorrect with Perl 5.6
Status: RESOLVED FIXED
Product: Logitech Media Server
Classification: Unclassified
Component: Web Interface
: 6.2.0
: PC All
: P2 normal (vote)
: ---
Assigned To: Robert Moser II
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2005-10-28 18:35 UTC by Justin Maggard
Modified: 2008-09-15 14:37 UTC (History)
0 users

See Also:
Category: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Justin Maggard 2005-10-28 18:35:52 UTC
The song title will show up incorrectly on both the player and the playlist
display on the web interface using SlimServer 6.2.x and Perl 5.6.1.  For
example, what should be:
"8. Waterfalls     from Crazy,Sexy,Cool  by TLC" 
 becomes
"8. WaterfallsDISC-TRACKNUM. TITLE     from Crazy,Sexy,Cool  by TLC  "

The problem is in Slim/Music/Info.pm.  In the parseFormat subroutine, @suffixes
is getting $format added to it on Perl 5.6.1.  This does not happen with Perl 5.8.4.
Comment 1 Dan Sully 2005-10-28 18:52:33 UTC
Robert - care to have a look?

Thanks
Comment 2 Robert Moser II 2005-10-28 19:37:57 UTC
Seems to be a problem with the pos() function not working in 5.6.1.  I'll see
what I can do.
Comment 3 Robert Moser II 2005-10-28 20:15:21 UTC
Using length(join '', @parsed) instead of pos($format) seems to work in both
Perl 5.6 and 5.8.  Committed as change 4924.
Comment 4 Chris Owens 2006-06-16 14:41:41 UTC
There are 536 bugs in the database with targets of '---' that were fixed prior to new year 2006.  I am setting them to targets of 6.2.1 to keep them from showing up in my queries.