nightl
This commit is contained in:
@@ -47,3 +47,11 @@ class TrackDisposition(Enum):
|
||||
if flags & int(2 ** d.index()):
|
||||
dispositionList += [d]
|
||||
return dispositionList
|
||||
|
||||
@staticmethod
|
||||
def find(disposition):
|
||||
matchingDispositions = [d for d in TrackDisposition if d.label() == str(disposition)]
|
||||
if matchingDispositions:
|
||||
return matchingDispositions[0]
|
||||
else:
|
||||
return None
|
||||
|
||||
Reference in New Issue
Block a user