DJXML Import Bug

lotusleon started this chat 2 years ago

Hello,

I've exported my library to DJXML to make some changes to it with a python script (Searching in a specific folder where I've sorted my music for duplicates between playlists and automatically remove from every playlist where the track should not be).

I use the python package for xml (import xml.etree.ElementTree as ET) to write the xml back to a file, however when I import the file, every playlist has 0 Songs in them.

This is caused by the formatting of the package and also vscode formats the xml in default like that:

<PlaylistTrack Id="1815" />

However, MIXO just imports it correctly when formatted this way:

<PlaylistTrack Id="1815"/>

(Note the Space before the closing tag)

It's just a small bug and most people won't ever mess with the xml the way I do, but this would help me a lot.
Note that I'm currently using the older version 1.25.0