Debian Codegraph @

mediafile/constants.py

raw
1 import enum
2
3 # Human-readable type names.
4 TYPES = {
5 "mp3": "MP3",
6 "aac": "AAC",
7 "alac": "ALAC",
8 "ogg": "OGG",
9 "opus": "Opus",
10 "flac": "FLAC",
11 "ape": "APE",
12 "wv": "WavPack",
13 "mpc": "Musepack",
14 "asf": "Windows Media",
15 "aiff": "AIFF",
16 "dsf": "DSD Stream File",
17 "wav": "WAVE",
18 }
19
20
21 class ImageType(enum.Enum):
22 """Indicates the kind of an `Image` stored in a file's tag."""
23
24 other = 0
25 icon = 1
26 other_icon = 2
27 front = 3
28 back = 4
29 leaflet = 5
30 media = 6
31 lead_artist = 7
32 artist = 8
33 conductor = 9
34 group = 10
35 composer = 11
36 lyricist = 12
37 recording_location = 13
38 recording_session = 14
39 performance = 15
40 screen_capture = 16
41 fish = 17
42 illustration = 18
43 artist_logo = 19
44 publisher_logo = 20