Show files as {track_number} - {track_title}
This commit is contained in:
@@ -232,7 +232,7 @@ async fn update_removes_orphaned_virtual_dirs_when_last_file_moves_out() {
|
||||
let item = guard.get(&INodeNo(100)).expect("file still present");
|
||||
assert_eq!(
|
||||
item.local_path,
|
||||
std::path::PathBuf::from("New Artist/New Album/New Title.flac")
|
||||
std::path::PathBuf::from("New Artist/New Album/01 - New Title.flac")
|
||||
);
|
||||
}
|
||||
|
||||
@@ -471,10 +471,10 @@ async fn update_changes_tags_and_response_reflects_new_values() {
|
||||
assert_eq!(mm.track_number, 7);
|
||||
|
||||
// Layout was recomputed from the new metadata.
|
||||
assert_eq!(item.name, "Updated Title.flac");
|
||||
assert_eq!(item.name, "07 - Updated Title.flac");
|
||||
assert_eq!(
|
||||
item.local_path,
|
||||
std::path::PathBuf::from("Updated Artist/Updated Album/Updated Title.flac")
|
||||
std::path::PathBuf::from("Updated Artist/Updated Album/07 - Updated Title.flac")
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user