Skip to content

Commit

Permalink
organise: Refresh filename after transcode
Browse files Browse the repository at this point in the history
  • Loading branch information
jbroadus authored and hatstand committed Jun 7, 2020
1 parent 22537a4 commit 22cfade
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/core/organise.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,12 @@ void Organise::ProcessSomeFiles() {
song.set_basefilename(Utilities::FiddleFileExtension(
song.basefilename(), task.new_extension_));

// Adjust the destination filename. Don't use the OrganiseFormat object
// for this since that will remove any duplicate filename adjustments
// made by OrganiseDialog.
task.song_info_.new_filename_ = Utilities::FiddleFileExtension(
task.song_info_.new_filename_, task.new_extension_);

// Have to set this to the size of the new file or else funny stuff
// happens
song.set_filesize(QFileInfo(task.transcoded_filename_).size());
Expand Down

0 comments on commit 22cfade

Please sign in to comment.