diff --git a/youtube_dl_gui/OptionsHandler.py b/youtube_dl_gui/OptionsHandler.py index a368ada..64387d8 100644 --- a/youtube_dl_gui/OptionsHandler.py +++ b/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, diff --git a/youtube_dl_gui/Utils.py b/youtube_dl_gui/Utils.py index 5333f0d..0fcb81c 100644 --- a/youtube_dl_gui/Utils.py +++ b/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 '/' diff --git a/youtube_dl_gui/YoutubeDLGUI.py b/youtube_dl_gui/YoutubeDLGUI.py index 9013622..5440a60 100644 --- a/youtube_dl_gui/YoutubeDLGUI.py +++ b/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"] diff --git a/youtube_dl_gui/YoutubeDLInterpreter.py b/youtube_dl_gui/YoutubeDLInterpreter.py index 2e07f0b..d326b44 100644 --- a/youtube_dl_gui/YoutubeDLInterpreter.py +++ b/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)