Scenario4 inc
This commit is contained in:
@@ -5,25 +5,25 @@ from enum import Enum
|
||||
|
||||
class TrackDisposition(Enum):
|
||||
|
||||
DEFAULT = {"name": "default", "index": 0}
|
||||
FORCED = {"name": "forced", "index": 1}
|
||||
DEFAULT = {"name": "default", "index": 0, "indicator": "DE"}
|
||||
FORCED = {"name": "forced", "index": 1, "indicator": "FO"}
|
||||
|
||||
DUB = {"name": "dub", "index": 2}
|
||||
ORIGINAL = {"name": "original", "index": 3}
|
||||
COMMENT = {"name": "comment", "index": 4}
|
||||
LYRICS = {"name": "lyrics", "index": 5}
|
||||
KARAOKE = {"name": "karaoke", "index": 6}
|
||||
HEARING_IMPAIRED = {"name": "hearing_impaired", "index": 7}
|
||||
VISUAL_IMPAIRED = {"name": "visual_impaired", "index": 8}
|
||||
CLEAN_EFFECTS = {"name": "clean_effects", "index": 9}
|
||||
ATTACHED_PIC = {"name": "attached_pic", "index": 10}
|
||||
TIMED_THUMBNAILS = {"name": "timed_thumbnails", "index": 11}
|
||||
NON_DIEGETICS = {"name": "non_diegetic", "index": 12}
|
||||
CAPTIONS = {"name": "captions", "index": 13}
|
||||
DESCRIPTIONS = {"name": "descriptions", "index": 14}
|
||||
METADATA = {"name": "metadata", "index": 15}
|
||||
DEPENDENT = {"name": "dependent", "index": 16}
|
||||
STILL_IMAGE = {"name": "still_image", "index": 17}
|
||||
DUB = {"name": "dub", "index": 2, "indicator": "DB"}
|
||||
ORIGINAL = {"name": "original", "index": 3, "indicator": "OG"}
|
||||
COMMENT = {"name": "comment", "index": 4, "indicator": "CM"}
|
||||
LYRICS = {"name": "lyrics", "index": 5, "indicator": "LY"}
|
||||
KARAOKE = {"name": "karaoke", "index": 6, "indicator": "KA"}
|
||||
HEARING_IMPAIRED = {"name": "hearing_impaired", "index": 7, "indicator": "HI"}
|
||||
VISUAL_IMPAIRED = {"name": "visual_impaired", "index": 8, "indicator": "VI"}
|
||||
CLEAN_EFFECTS = {"name": "clean_effects", "index": 9, "indicator": "CE"}
|
||||
ATTACHED_PIC = {"name": "attached_pic", "index": 10, "indicator": "AP"}
|
||||
TIMED_THUMBNAILS = {"name": "timed_thumbnails", "index": 11, "indicator": "TT"}
|
||||
NON_DIEGETICS = {"name": "non_diegetic", "index": 12, "indicator": "ND"}
|
||||
CAPTIONS = {"name": "captions", "index": 13, "indicator": "CA"}
|
||||
DESCRIPTIONS = {"name": "descriptions", "index": 14, "indicator": "DS"}
|
||||
METADATA = {"name": "metadata", "index": 15, "indicator": "MD"}
|
||||
DEPENDENT = {"name": "dependent", "index": 16, "indicator": "DP"}
|
||||
STILL_IMAGE = {"name": "still_image", "index": 17, "indicator": "SI"}
|
||||
|
||||
|
||||
def label(self):
|
||||
@@ -32,6 +32,9 @@ class TrackDisposition(Enum):
|
||||
def index(self):
|
||||
return int(self.value['index'])
|
||||
|
||||
def indicator(self):
|
||||
return str(self.value['indicator'])
|
||||
|
||||
|
||||
@staticmethod
|
||||
def toFlags(dispositionSet):
|
||||
|
||||
Reference in New Issue
Block a user