Skip to content

Program name and version should be passed to XML builder #84

@cjcodeproj

Description

@cjcodeproj

The xml builder modules generate a version string for the calling program.

def build_head(self) -> str:
'''
Build the start of the album XML.
'''
timestamp = datetime.datetime.now()
output = XML_DECLARATION
output += "<medialist xmlns='http://vectortron.com/xml/media/media'"
output += " xmlns:xi='http://www.w3.org/2001/XInclude'>\n"
output += f" <!-- created by id3scan v{VERS_STR} ({timestamp}) -->\n"
output += " <media>\n"
return output

But that data is hard coded, when theoretically there could be other programs using this framework to generate a XML structure.

A mechanism to pass the program name and version to the builder code should be figured out.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions