Browse Source

Change DASH audio

Change "NO SOUND" to "none"
doc-issue-template
MrS0m30n3 10 years ago
parent
commit
33b0ff756b
4 changed files with 5 additions and 5 deletions
  1. 2
      youtube_dl_gui/OptionsHandler.py
  2. 2
      youtube_dl_gui/Utils.py
  3. 2
      youtube_dl_gui/YoutubeDLGUI.py
  4. 4
      youtube_dl_gui/YoutubeDLInterpreter.py

2
youtube_dl_gui/OptionsHandler.py

@ -32,7 +32,7 @@ class OptionsHandler():
self.options = {
'save_path': get_HOME(),
'video_format': 'default',
'dash_audio_format': 'NO SOUND',
'dash_audio_format': 'none',
'clear_dash_files': False,
'to_audio': False,
'keep_video': False,

2
youtube_dl_gui/Utils.py

@ -48,7 +48,7 @@ def video_is_dash(video):
return "DASH" in video
def have_dash_audio(audio):
return audio != "NO SOUND"
return audio != "none"
def get_path_seperator():
return '\\' if os_type == 'nt' else '/'

2
youtube_dl_gui/YoutubeDLGUI.py

@ -49,7 +49,7 @@ VIDEOFORMATS = ["default",
"mp4 480p(DASH)",
"mp4 360p(DASH)"]
DASH_AUDIO_FORMATS = ["NO SOUND",
DASH_AUDIO_FORMATS = ["none",
"DASH m4a audio 128k",
"DASH webm audio 48k"]

4
youtube_dl_gui/YoutubeDLInterpreter.py

@ -35,7 +35,7 @@ VIDEOFORMATS = {"default":"0",
"mp4 480p(DASH)":"135",
"mp4 360p(DASH)":"134"}
DASH_AUDIO_FORMATS = {"NO SOUND":"None",
DASH_AUDIO_FORMATS = {"none":"none",
"DASH m4a audio 128k":"140",
"DASH webm audio 48k":"171"}
@ -124,7 +124,7 @@ class YoutubeDLInterpreter():
if video_is_dash(self.optManager.options['video_format']):
vf = VIDEOFORMATS[self.optManager.options['video_format']]
af = DASH_AUDIO_FORMATS[self.optManager.options['dash_audio_format']]
if af != 'None':
if af != 'none':
self.opts.append(vf+'+'+af)
else:
self.opts.append(vf)

Loading…
Cancel
Save