rename metadata.write_metadata() to match metadata.parse_*_metadata()

This changes the function name to include the format of the metadata file,
and also changes the order of the args to match the parse_*_metadata()
functions.
This commit is contained in:
Hans-Christoph Steiner 2015-08-10 22:29:17 +02:00
parent 3b20153cd7
commit 994488ad47
4 changed files with 18 additions and 14 deletions

View file

@ -84,8 +84,7 @@ def main():
print(app.metadatapath)
continue
with open(base + '.' + to_ext, 'w') as f:
metadata.write_metadata(to_ext, f, app)
metadata.write_metadata(base + '.' + to_ext, app)
if ext != to_ext:
os.remove(app.metadatapath)