Browse Source

Add flac audio format. Closes #234

doc-issue-template
MrS0m30n3 7 years ago
parent
commit
c95c7d444a
2 changed files with 7 additions and 4 deletions
  1. 6
      youtube_dl_gui/formats.py
  2. 5
      youtube_dl_gui/optionsmanager.py

6
youtube_dl_gui/formats.py

@ -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")
])

5
youtube_dl_gui/optionsmanager.py

@ -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')

Loading…
Cancel
Save