-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconstants.py
34 lines (27 loc) · 840 Bytes
/
constants.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
OUTPUT_DIR = "%USERPROFILE%/Music/Audio_Tools/"
DEFAULT_OPTIONS = {
'outtmpl': OUTPUT_DIR + '%(title)s.%(ext)s',
"no_color": True,
"quiet": True,
}
FORMATS_OPTIONS = {
"mp3": {"format": "bestaudio/best",
"postprocessors": [{
"key": "FFmpegExtractAudio",
"preferredcodec": "mp3",
"preferredquality": "0",
}]},
"wav": {"format": "bestaudio/best",
"postprocessors": [{
"key": "FFmpegExtractAudio",
"preferredcodec": "wav",
"preferredquality": "0",
}]},
"mp4": {
"format": "bestvideo[ext=mp4]+bestaudio[ext=m4a]/best[ext=mp4]/best",
"postprocessors": [{
"key": "FFmpegVideoConvertor",
"preferedformat": "mp4"
}]
},
}