Skip to content

Commit

Permalink
revisit a list of preset options
Browse files Browse the repository at this point in the history
  • Loading branch information
mhogomchungu committed May 31, 2024
1 parent cd51e36 commit d761345
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 15 deletions.
13 changes: 9 additions & 4 deletions src/configure.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
Expand Down
10 changes: 0 additions & 10 deletions src/directoryEntries.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
1 change: 0 additions & 1 deletion src/directoryEntries.h
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ class directoryEntries
}
bool valid( const char * ) ;
bool valid( const wchar_t * ) ;
bool valid( const QString& ) ;

void clear()
{
Expand Down

0 comments on commit d761345

Please sign in to comment.