Skip to content

Commit

Permalink
silence a meaningless output
Browse files Browse the repository at this point in the history
  • Loading branch information
mhogomchungu committed Dec 4, 2024
1 parent 5a6515e commit 57b7981
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/engines/yt-dlp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1321,6 +1321,11 @@ yt_dlp::yt_dlplFilter::yt_dlplFilter( int processId,

const QByteArray& yt_dlp::yt_dlplFilter::operator()( Logger::Data& s )
{
if( s.lastText().contains( "ERROR: ld.so: object" ) ){

return m_preProcessing.text() ;
}

if( s.lastText() == "[media-downloader] Download Cancelled" ){

if( m_parent.m_settings->deleteFilesOnCanceledDownload() ){
Expand Down
5 changes: 5 additions & 0 deletions src/playlistdownloader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1546,6 +1546,11 @@ void playlistdownloader::banner::updateTimer()

bool playlistdownloader::stdError::operator()( const QByteArray& e )
{
if( e.contains( "ERROR: ld.so: object" ) ){

return true ;
}

auto s = e.indexOf( "page" ) ;

if( s != -1 && e.contains( "Downloading API JSON" ) ){
Expand Down

0 comments on commit 57b7981

Please sign in to comment.