organise: Refresh filename after transcode
This commit is contained in:
parent
22537a4501
commit
22cfade4a4
|
@ -149,6 +149,12 @@ void Organise::ProcessSomeFiles() {
|
||||||
song.set_basefilename(Utilities::FiddleFileExtension(
|
song.set_basefilename(Utilities::FiddleFileExtension(
|
||||||
song.basefilename(), task.new_extension_));
|
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
|
// Have to set this to the size of the new file or else funny stuff
|
||||||
// happens
|
// happens
|
||||||
song.set_filesize(QFileInfo(task.transcoded_filename_).size());
|
song.set_filesize(QFileInfo(task.transcoded_filename_).size());
|
||||||
|
|
Loading…
Reference in New Issue