Ignore:
Timestamp:
2024-02-20T12:26:01+13:00 (4 months ago)
Author:
kjdon
Message:

allow for eg Conductor, not just conductor

File:
1 edited

Legend:

Unmodified
Added
Removed
  • gs3-installations/twso/trunk/sites/twso/PreProcessing/metadatacreator3.py

    r35269 r38755  
    5252
    5353#This method is used to get the name from a "conductor Buchanan-Smart, Andrew" line
    54 #ie it removes the conductor part
     54#ie it removes the conductor part - which is at pos 0 of the temp array
    5555def printName(temp):
    5656
     
    7474    for line in lines:
    7575        temp = line.split()
    76         if temp[0] == "soloist":
     76        if temp[0].lower() == "soloist":
    7777            fn.write("<Metadata mode='accumulate' name='pd.Soloist'>" + printName(temp) + "</Metadata>\n")
    78         elif temp[0] == "conductor":
     78        elif temp[0].lower() == "conductor":
    7979            fn.write("<Metadata mode='accumulate' name='pd.Conductor'>" + printName(temp) + "</Metadata>\n")
    8080        else:
Note: See TracChangeset for help on using the changeset viewer.