Windows Media Player Playlist (.wlp) - how to save relative paths?

خرید بک لینک

I'm syncing Windows Media Player playlists between computers. Therefore, my playlists need to use relative paths, or it will not work on the other computer and vice versa.

Background:

  • I'm using my own batch tool in order to create playlists from directories. I'm well aware of auto playlists, but they cannot be sorted. My batch tool works, but WMP changes all playlists to absolute paths eventually. I can observe this phenomenon since only recently.
  • I'm syncing using Mercurial. But that's irrelevant, it's just in case someone asks

The XML of a playlist

This is after I sorted the songs and saved it through WMP. However, paths are replaced with absolute paths (starting with D:) later. I can't really tell when this happens.

My destination computer doesn't have a D: so same paths is not an option.

<?wpl version="1.0"?>
<smil>
    <head>
        <meta name="Generator" content="Microsoft Windows Media Player -- 12.0.10586.162"/>
        <meta name="ItemCount" content="6"/>
        <title>Playlist Title</title>
    </head>
    <body>
        <seq>
            <media src=".............mp3"/>

Recent Questions...

ما را در سایت Recent Questions دنبال می‌کنید

برچسب: نویسنده: استخدام کار بازدید: 214 تاريخ: دوشنبه 7 تير 1395 ساعت: 23:53

صفحه بندی