Bug 588 - PLS & M3U files have file URLs when they should have paths...
: PLS & M3U files have file URLs when they should have paths...
Status: RESOLVED FIXED
Product: Logitech Media Server
Classification: Unclassified
Component: Playlists
: 5.x or older
: Macintosh All
: P2 normal (vote)
: ---
Assigned To: Blackketter Dean
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2004-09-29 08:01 UTC by Blackketter Dean
Modified: 2008-12-18 11:51 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 Blackketter Dean 2004-09-29 08:01:08 UTC
PLS & M3U files are written with file URLs rather than paths, which confuses some other software, 
including musicmatch.

This fixes it:

Index: Slim/Formats/Parse.pm
===============================================================
====
RCS file: /home/cvs/cvsroot/slim/server/Slim/Formats/Parse.pm,v
retrieving revision 1.20
diff -r1.20 Parse.pm
319,320c319,320
< 
<               print $output "File$itemnum=$item\n";
---
>               my $path = Slim::Music::Info::isFileURL($item) ? Slim::Utils::Misc::pathFromFileURL($item) : 
$item;
>               print $output "File$itemnum=$path\n";
375,376c375,376
< 
<               print $output "$item\n";
---
>               my $path = Slim::Music::Info::isFileURL($item) ? Slim::Utils::Misc::pathFromFileURL($item) : 
$item;
>               print $output "$path\n";
Comment 1 KDF 2004-10-01 23:12:26 UTC
dean, didnt I see this get checked into cvs already?
Comment 2 Chris Owens 2006-06-16 14:40:37 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.
Comment 3 Chris Owens 2008-12-18 11:51:52 UTC
Routine bug db maintenance; removing old versions which cause confusion.  I apologize for the inconvenience.