More > JRiver Media Center 21 for Mac

Exporting playlists for a Windows player

<< < (2/2)

dskrt:
If you generate a .WPL file from Windows media player under Windows the path separators used will also be a slash "\". Any path address in the windows environment is with "\" unfortunately, so it is in fact not so non-standard

Changing path in playlist by 'find and replace' is very tedious as you have to replace "/" one by one because XML statement like </title> also also use "\" in their tags   

Here is a WPL file generated by Mediaplayer in Windows:

<?wpl version="1.0"?>
<smil>
    <head>
        <meta name="Generator" content="Microsoft Windows Media Player -- 12.0.7601.18840"/>
        <meta name="ItemCount" content="0"/>
        <title>Test</title>
    </head>
    <body>
        <seq>
            <media src="..\..\..\..\..\..\..\Windows\winsxs\amd64_microsoft-windows-musicsamples_31bf3856ad364e35_6.1.7600.16385_none_06495209cbd8e93b\Kalimba.mp3"/>
        </seq>
    </body>
</smil>

blgentry:
Ok, questions and comments:

1. Is this to be used in a Microsoft Sync system?  It might help with figuring out specifics about the playlist format.  For example, I've read that Sync needs full path names.  Your example has relative path names, which probably won't work based on what I read.
2.  Are you using MC's Handhelds feature to copy music and playlists?  Or are you manually exporting one or more playlists?
3.  I don't think WPL format is in any way necessary for Sync.  M3U is supposed to work.  Then you won't have the problem with the XML tags after you do a find and replace.
4.  If you REALLY want to use WPL for some reason, you can still do a find and replace.  You just have to do 3 of them.  First one replaces / with \.  Next one replaces \> with /> .  Final one replaces <\ with </ .  That should fully transform the file correctly.  Here's a command line that does all of that in one shot for the named file:


--- Code: ---perl -pi -e 's/\//\\/g;s/<\\/<\//g;s/\\>/\/>/g' "Put the Filename here without quotes"
--- End code ---

You could automate this further by having the command line operate on all of the playlists in a directory for example.

I would suggest you do some testing to find out what playlist format works with your system, whether it can use relative paths, etc.  Then you can work on a strategy for doing these exports in as easy a way as possible.  :)

Brian.

dskrt:
What is SYNC ? I am copying my music and playlists to an SD Card which I use then in my car , a Mitsubishi Outlander with MMCS. The owner manuals clearly states it needs .WPL playlists and only WPL playlists. WPL Playlists generated from WINDOWS MC work correctly, those from MAC MC do not.

WPL is a Windows Media Player Playlist and as such should imho use slashes.

I am exporting the Playlist with relative path. As said from MC Win it works, from MC Mac it does not

Here is an example playlist generated by MC WIN

<?wpl version="1.0"?><smil>
<head>
<title>Rattle that Lock</title>
</head>
<body>
<seq>
<media src="Music\David Gilmour\Rattle That Lock (Blu-Ray + CD Deluxe Edition) - Disc 1_ CD\David Gilmour - 5 a.M..mp3" tid="{8C6C1A45-6D90-4F77-800E-6744F2C12827}"/>
<media src="Music\David Gilmour\Rattle That Lock (Blu-Ray + CD Deluxe Edition) - Disc 1_ CD\David Gilmour - Rattle That Lock.mp3" tid="{327A40D9-7CFB-4833-BC84-164804580033}"/>
<media src="Music\David Gilmour\Rattle That Lock (Blu-Ray + CD Deluxe Edition) - Disc 1_ CD\David Gilmour - Faces of Stone.mp3" tid="{0AC41289-384B-4268-941B-D92EBDA9400D}"/>
<media src="Music\David Gilmour\Rattle That Lock (Blu-Ray + CD Deluxe Edition) - Disc 1_ CD\David Gilmour - A Boat Lies Waiting.mp3" tid="{D6B53DA0-D002-4674-A3C7-C68D7B7BB34B}"/>
<media src="Music\David Gilmour\Rattle That Lock (Blu-Ray + CD Deluxe Edition) - Disc 1_ CD\David Gilmour - Dancing Right in Front of Me.mp3" tid="{90B1E50F-92E0-43CA-861F-4495D35FD183}"/>
<media src="Music\David Gilmour\Rattle That Lock (Blu-Ray + CD Deluxe Edition) - Disc 1_ CD\David Gilmour - In Any Tongue.mp3" tid="{6345AD5A-C3C9-4A33-BC75-FFF2D12F49F5}"/>
<media src="Music\David Gilmour\Rattle That Lock (Blu-Ray + CD Deluxe Edition) - Disc 1_ CD\David Gilmour - Beauty.mp3" tid="{92E2CEDE-1824-4B66-82AC-DDD8CEF7C939}"/>
<media src="Music\David Gilmour\Rattle That Lock (Blu-Ray + CD Deluxe Edition) - Disc 1_ CD\David Gilmour - The Girl in the Yellow Dress.mp3" tid="{53765ED1-967C-4DDB-A257-915706B837BF}"/>
<media src="Music\David Gilmour\Rattle That Lock (Blu-Ray + CD Deluxe Edition) - Disc 1_ CD\David Gilmour - Today.mp3" tid="{2CB731C8-4800-4CB7-A871-719801BF4DC7}"/>
<media src="Music\David Gilmour\Rattle That Lock (Blu-Ray + CD Deluxe Edition) - Disc 1_ CD\David Gilmour - And Then....mp3" tid="{82281129-4BB2-47AB-ABA2-C797C3A01E7A}"/>
</seq>
</body>
</smil>

And here the same Playlist generated by MC MAC. Both generated by MC 21

<?wpl version="1.0"?><smil>
<head>
<title>Rattle that Lock</title>
</head>
<body>
<seq>
<media src="./Music/David Gilmour/Rattle That Lock (Blu-Ray + CD Deluxe Edition) - Disc 1_ CD/David Gilmour - 5 a.M..mp3" tid="{8CFA3257-2DDA-4444-9C93-5EEC0644058E}"/>
<media src="./Music/David Gilmour/Rattle That Lock (Blu-Ray + CD Deluxe Edition) - Disc 1_ CD/David Gilmour - Rattle That Lock.mp3" tid="{F8F761D3-682E-7E49-AFB4-4E2C1380E944}"/>
<media src="./Music/David Gilmour/Rattle That Lock (Blu-Ray + CD Deluxe Edition) - Disc 1_ CD/David Gilmour - Faces of Stone.mp3" tid="{1E19873B-69E9-CE47-9D15-4AFDDA19E1A1}"/>
<media src="./Music/David Gilmour/Rattle That Lock (Blu-Ray + CD Deluxe Edition) - Disc 1_ CD/David Gilmour - A Boat Lies Waiting.mp3" tid="{E059E37E-DCA7-7546-B6B4-E954ED1DE580}"/>
<media src="./Music/David Gilmour/Rattle That Lock (Blu-Ray + CD Deluxe Edition) - Disc 1_ CD/David Gilmour - Dancing Right in Front of Me.mp3" tid="{8DD51371-0AF0-C849-8A95-C4A13964D36C}"/>
<media src="./Music/David Gilmour/Rattle That Lock (Blu-Ray + CD Deluxe Edition) - Disc 1_ CD/David Gilmour - In Any Tongue.mp3" tid="{1520DA24-DE39-C348-A452-117654FBAD43}"/>
<media src="./Music/David Gilmour/Rattle That Lock (Blu-Ray + CD Deluxe Edition) - Disc 1_ CD/David Gilmour - Beauty.mp3" tid="{D1987038-D127-1744-BE84-54BC93E4B281}"/>
<media src="./Music/David Gilmour/Rattle That Lock (Blu-Ray + CD Deluxe Edition) - Disc 1_ CD/David Gilmour - The Girl in the Yellow Dress.mp3" tid="{329389DD-2FC6-D243-B221-05880F36EB77}"/>
<media src="./Music/David Gilmour/Rattle That Lock (Blu-Ray + CD Deluxe Edition) - Disc 1_ CD/David Gilmour - Today.mp3" tid="{6CAAF355-8062-6E4D-AC09-DBA8CA7FBEB6}"/>
<media src="./Music/David Gilmour/Rattle That Lock (Blu-Ray + CD Deluxe Edition) - Disc 1_ CD/David Gilmour - And Then....mp3" tid="{8E8E4F1B-4AF5-BE46-8B3A-652FE734EDC8}"/>
</seq>
</body>
</smil>


blgentry:

--- Quote from: dskrt on October 08, 2015, 10:30:01 am ---What is SYNC ? I am copying my music and playlists to an SD Card which I use then in my car , a Mitsubishi Outlander with MMCS.
--- End quote ---

Microsoft makes a touchscreen "advanced" stereo system that is put into a lot of Ford Vehicles as an option.  That system is called Sync, or Ford Sync, or Microsoft Sync.  It's no fun to use and REALLY no fun to integrate with.  I'm glad you don't have one.


--- Quote ---The owner manuals clearly states it needs .WPL playlists and only WPL playlists. WPL Playlists generated from WINDOWS MC work correctly, those from MAC MC do not.
--- End quote ---

Ok, that makes it very clear then.

My perl command line that I posted earlier will convert the slashes ( / ) to backslashes ( \ ) for you and preserve all of the XML tags correctly.  I've noticed that the Mac version of the WPL playlist also has "./" before the path to each music file.  I've added a little piece to my perl command line to remove that also.  As a test, I cut and pasted your Mac playlist into a file on my system.  Then I ran my new perl command on that file.  It transformed it into something that seems to be just about exactly the same as the windows version.  I'm attaching it here.

Here's the updated command:


--- Code: ---perl -pi -e 's/\.\///g;s/\//\\/g;s/<\\/<\//g;s/\\>/\/>/g' "File Name goes here without quotes"
--- End code ---

I don't speak for JRiver, so I can't address adding this capability to the program.  I'm just trying to help you.  If you want to try my command, great.  If not, that's fine too.  Good luck to you.

Brian.

dskrt:
Thanks a lot Brian, I will try your perl as a workaround and I will also address it to JRiver as it is in my opinion not a correct generation of the WPL file on MAC systems

Navigation

[0] Message Index

[*] Previous page

Go to full version