cjcodeproj / musicscan

Python code to examine music files and extract metadata
MIT License
0 stars 0 forks source link

The XML generation code could use work. #4

Open cjcodeproj opened 3 months ago

cjcodeproj commented 3 months ago

The XML output is just string print operations.

That works, but it would probably be better to create a legitimate XML tree structure that is streamed out to the files.

The big concern would be formatting for readability. Elements like artist name should be output on a single line.

We want this:

  <artist><unkn>Dwight Yoakam</unkn></artist>

Not this:

  <artist>
     <unkn>Dwight Yoakam</unkn>
  </artist>

Technically, this probably means new features added to the medialibrary codebase to support XML output to the objects, but the code could be duplicated here.