Skip to content

Commit

Permalink
MusicXML import ignore embedded mimetype
Browse files Browse the repository at this point in the history
  • Loading branch information
ssb22 committed Feb 15, 2025
1 parent d805dec commit d77bbba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jianpu-ly.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

r"""
# Jianpu (numbered musical notaion) for Lilypond
# v1.834 (c) 2012-2025 Silas S. Brown
# v1.835 (c) 2012-2025 Silas S. Brown
# v1.826 (c) 2024 Unbored
# Licensed under the Apache License, Version 2.0 (the "License");
Expand Down Expand Up @@ -957,7 +957,7 @@ def getInput0():
if f.endswith(".mxl"):
import zipfile ; z=zipfile.ZipFile(f)
for F in z.infolist():
if not F.filename=="META-INF/container.xml":
if not F.filename in ["mimetype","META-INF/container.xml"]:
b = z.read(F)
if type("")==type(u""): b=b.decode('utf-8')
inDat.append(b)
Expand Down

0 comments on commit d77bbba

Please sign in to comment.