Browse Source

Use AUDIO_FORMATS from formats.py

doc-issue-template
MrS0m30n3 8 years ago
parent
commit
499499435b
1 changed files with 2 additions and 3 deletions
  1. 5
      youtube_dl_gui/optionsframe.py

5
youtube_dl_gui/optionsframe.py

@ -30,6 +30,7 @@ from .utils import (
from .formats import (
OUTPUT_FORMATS,
VIDEO_FORMATS,
AUDIO_FORMATS,
FORMATS
)
#TODO Bind events
@ -330,8 +331,6 @@ class FormatsTab(TabPanel):
AUDIO_QUALITY = twodict([("0", _("high")), ("5", _("mid")), ("9", _("low"))])
AUDIO_FORMATS = ["mp3", "wav", "aac", "m4a", "vorbis", "opus"]
def __init__(self, *args, **kwargs):
super(FormatsTab, self).__init__(*args, **kwargs)
@ -339,7 +338,7 @@ class FormatsTab(TabPanel):
self.video_formats_checklistbox = self.crt_checklistbox(list(VIDEO_FORMATS.values()))
self.audio_formats_label = self.crt_statictext("Audio formats")
self.audio_formats_checklistbox = self.crt_checklistbox(self.AUDIO_FORMATS)
self.audio_formats_checklistbox = self.crt_checklistbox(list(AUDIO_FORMATS.values()))
self.post_proc_opts_label = self.crt_statictext("Post-Process options")
self.keep_video_checkbox = self.crt_checkbox("Keep original video")

Loading…
Cancel
Save