Repository: qarmin/czkawka (language: rust)

Issue:
Saved music duplicates result is incorrect
After searching for "Music Duplicates", the UI shows the following message:
```
Found ⁨1309⁩ similar music files in ⁨1037⁩ groups
```

Saving the results to file via the "Save" button create the file.  However, its content is incorrect and does not contains duplicated music files:
```
Results of searching ["/storage/media/Music"] with excluded directories [] and excluded items ["*/.git/*", "*/node_modules/*", "*/lost+found/*", "*/Trash/*", "*/.Trash-*/*", "*/snap/*", "/home/*/.cache/*"]
Not found any empty files
```


Discussion / hints:

Fix patch:
diff --git a/czkawka_core/src/same_music.rs b/czkawka_core/src/same_music.rs
index 6c031a96d..9d9cbbbd3 100644
--- a/czkawka_core/src/same_music.rs
+++ b/czkawka_core/src/same_music.rs
@@ -1117,13 +1117,29 @@ impl SaveResults for SameMusic {
             return false;
         }
 
-        if !self.music_entries.is_empty() {
-            writeln!(writer, "Found {} same music files.", self.information.number_of_duplicates).unwrap();
-            for file_entry in &self.music_entries {
-                writeln!(writer, "{}", file_entry.path.display()).unwrap();
+        if !self.duplicated_music_entries.is_empty() {
+            writeln!(writer, "{} music files which have similar friends\n\n.", self.duplicated_music_entries.len()).unwrap();
+
+            for vec_file_entry in &self.duplicated_music_entries {
+                writeln!(writer, "Found {} music files which have similar friends", vec_file_entry.len()).unwrap();
+                for file_entry in vec_file_entry {
+                    writeln!(
+                        writer,
+                        "TT: {}  -  TA: {}  -  Y: {}  -  L: {}  -  G: {}  -  B: {}  -  P: {}",
+                        file_entry.track_title,
+                        file_entry.track_artist,
+                        file_entry.year,
+                        file_entry.length,
+                        file_entry.genre,
+                        file_entry.bitrate,
+                        file_entry.path.display()
+                    )
+                    .unwrap();
+                }
+                writeln!(writer).unwrap();
             }
         } else {
-            write!(writer, "Not found any empty files.").unwrap();
+            write!(writer, "Not found any similar music files.").unwrap();
         }
 
         true


Test patch: