This commit is contained in:
Maveno
2024-10-04 23:45:25 +02:00
parent 5e017a8373
commit eaee3b34da
9 changed files with 407 additions and 180 deletions

View File

@@ -49,8 +49,8 @@ class TrackDisposition(Enum):
return dispositionList
@staticmethod
def find(disposition):
matchingDispositions = [d for d in TrackDisposition if d.label() == str(disposition)]
def find(label):
matchingDispositions = [d for d in TrackDisposition if d.label() == str(label)]
if matchingDispositions:
return matchingDispositions[0]
else: