From d7613458b8d0a0bc8b707a69085d746f404fdd30 Mon Sep 17 00:00:00 2001 From: mhogomchungu Date: Fri, 31 May 2024 12:04:06 +0300 Subject: [PATCH] revisit a list of preset options --- src/configure.cpp | 13 +++++++++---- src/directoryEntries.cpp | 10 ---------- src/directoryEntries.h | 1 - 3 files changed, 9 insertions(+), 15 deletions(-) diff --git a/src/configure.cpp b/src/configure.cpp index c214e291..fad6e052 100644 --- a/src/configure.cpp +++ b/src/configure.cpp @@ -1353,27 +1353,32 @@ QByteArray configure::presetOptions::defaultData() "website": "Youtube" }, { - "options": "-f bestaudio -x --embed-thumbnail --audio-format mp3", + "options": "-f bestaudio --extract-audio --audio-quality 0 --audio-format mp3 --embed-thumbnail", "uiName": "Best Available Audio Only(MP3)", "website": "Youtube" }, { - "options": "-f bestaudio -x --embed-thumbnail", + "options": "-f bestaudio", "uiName": "Best Available Audio Only", "website": "Youtube" }, + { + "options": "-f bestaudio --extract-audio --audio-quality 0 --embed-thumbnail", + "uiName": "Best Available Audio Only+Thumbnail", + "website": "Youtube" + }, { "options": "-f bestvideo[ext=mp4][vcodec^=avc]+bestaudio[ext=m4a]/bestvideo[ext=mp4]+bestaudio[ext=m4a]/bestvideo+bestaudio/best[ext=mp4]/best", "uiName": "Best Available Audio Video", "website": "Other Websites" }, { - "options": "-f bestaudio/worst -x --embed-thumbnail --audio-format mp3", + "options": "-f bestaudio/worst --embed-thumbnail --extract-audio --audio-quality 0 --audio-format mp3", "uiName": "Extract Audio As MP3", "website": "Other Websites" }, { - "options": "-f bestaudio/worst -x --embed-thumbnail", + "options": "-f bestaudio/worst --extract-audio --audio-quality 0 --embed-thumbnail", "uiName": "Extract Audio", "website": "Other Websites" } diff --git a/src/directoryEntries.cpp b/src/directoryEntries.cpp index ef354f42..5c1cf86f 100644 --- a/src/directoryEntries.cpp +++ b/src/directoryEntries.cpp @@ -355,16 +355,6 @@ bool directoryEntries::valid( const wchar_t * s ) return true ; } -bool directoryEntries::valid( const QString& m ) -{ - if( m == ".." || m.startsWith( "." ) || m.startsWith( "info_" ) ){ - - return false ; - }else{ - return true ; - } -} - class alwaysContinue { public: diff --git a/src/directoryEntries.h b/src/directoryEntries.h index 30158dd2..42b400e9 100644 --- a/src/directoryEntries.h +++ b/src/directoryEntries.h @@ -79,7 +79,6 @@ class directoryEntries } bool valid( const char * ) ; bool valid( const wchar_t * ) ; - bool valid( const QString& ) ; void clear() {