Add flac audio format. Closes #234

master
MrS0m30n3 2017-10-09 16:38:54 +03:00
parent 5989bb1ed3
commit c95c7d444a
2 changed files with 7 additions and 4 deletions

View File

@ -74,7 +74,8 @@ AUDIO_FORMATS = tdict([
("aac", "aac"),
("m4a", "m4a"),
("vorbis", "vorbis"),
("opus", "opus")
("opus", "opus"),
("flac", "flac")
])
@ -173,7 +174,8 @@ def reload_strings():
("aac", "aac"),
("m4a", "m4a"),
("vorbis", "vorbis"),
("opus", "opus")
("opus", "opus"),
("flac", "flac")
])

View File

@ -83,7 +83,8 @@ class OptionsManager(object):
after post processing it.
audio_format (string): Audio format of the post processed file.
Available values are "mp3", "wav", "aac", "m4a", "vorbis", "opus".
Available values are "mp3", "wav", "aac", "m4a", "vorbis",
"opus" & "flac".
audio_quality (string): Audio quality of the post processed file.
Available values are "9", "5", "0". The lowest the value the
@ -339,7 +340,7 @@ class OptionsManager(object):
'264', '138', '242', '243', '244', '247', '248', '271', '272', '82',
'83', '84', '85', '100', '101', '102', '139', '140', '141', '171', '172')
VALID_AUDIO_FORMAT = ('mp3', 'wav', 'aac', 'm4a', 'vorbis', 'opus', '')
VALID_AUDIO_FORMAT = ('mp3', 'wav', 'aac', 'm4a', 'vorbis', 'opus', 'flac', '')
VALID_AUDIO_QUALITY = ('0', '5', '9')