1

For some reason Windows Media Player does a very bad job of keeping unique files unique in their automatic playlists, as the image in the link shows. WMP snapshot showing 8 dupes of Bronski Beat - Small town boy: enter image description here

The file is not duplicated in the library as the next image shows: enter image description here

Finally, these are the criteria used to create the automatic playlist taken from the wpl file, since the app freezes if I try to bring up the playlist creation wizard.

    <?wpl version="1.0"?>
<smil>
    <head>
        <meta name="Generator" content="Microsoft Windows Media Player -- 12.0.19041.3570"/>
        <title>Favorites</title>
    </head>
    <body>
        <seq>
            <smartPlaylist title="Favorites">
                <querySet>
                    <sourceFilter id="{4202947A-A563-4B05-A754-A1B4B5989849}" name="Music in my library">
                        <fragment name="Genre">
                            <argument name="condition">Contains</argument>
                            <argument name="value">Favorite</argument>
                        </fragment>
                        <fragment name="Keyword Search">
                            <argument name="condition">Does Not Contain</argument>
                            <argument name="value">Favorite\Easy</argument>
                        </fragment>
                        <fragment name="Keyword Search">
                            <argument name="condition">Does Not Contain</argument>
                            <argument name="value">iPhone</argument>
                        </fragment>
                    </sourceFilter>
                </querySet>
            </smartPlaylist>
        </seq>
    </body>
</smil>

I tried a few ways to delete these dupes with Python using the WMP API but none worked (deleting the files and readding doesn't work, they become duplicated again). I've tried a bunch of other approaches with no luck. Recreating the music library is not good at all, it takes too long (large music collection) and the problem comes back. Any ideas?

1 Answer 1

1
  1. Create your own playlist. An M3U playlist can be created using Explorer simply by selecting files manually, or performing a Search and selecting them. Press ShiftClick nd right-click on selected list, then Copy as Path. Paste into a text editor and save with extension .m3u, or .m3u8 if there are Unicode characters. BTW, theoretically, there should be a header line, but most media players do not need it.
  2. If you don't like WMP, rather than complain, use a different player -- there are a slew of them, such as VLC, MPC-HC, or alternatives.
1
  • Please don't upvote this answer. It's not an expert answer at all. Some people truly have the habit of giving a mindless answer to something they know nothing about, in the hopes of getting likes. Tbh I was hoping for an expert on the WMP API to see this and enlighten me. The very opposite has happened. Commented Jul 12, 2024 at 1:25

You must log in to answer this question.