Skip to content

Commit

Permalink
remove --parse-metadata illegal character
Browse files Browse the repository at this point in the history
  • Loading branch information
mhogomchungu committed Oct 30, 2024
1 parent 6d447ff commit da22508
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions src/engines/yt-dlp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,6 @@ yt_dlp::yt_dlp( const engines& engines,
}else{
m_processEnvironment.insert( "PYTHONPATH",e + ":" + m ) ;
}

}

Q_UNUSED( m_version )
Expand Down Expand Up @@ -1233,7 +1232,17 @@ void yt_dlp::updateDownLoadCmdOptions( const engines::engine::baseEngine::update
if( txt.contains( original ) ){

mm.append( "--parse-metadata" ) ;
mm.append( New + ":" + original ) ;

if( New.contains( ":" ) ){

auto m = New ;

m.replace( ":",";" ) ;

mm.append( m + ":" + original ) ;
}else{
mm.append( New + ":" + original ) ;
}
}
} ;

Expand Down

0 comments on commit da22508

Please sign in to comment.