fix: wrong unwrap causing the artist folder to be literally None
This commit is contained in:
+1
-1
@@ -18,7 +18,7 @@ pub fn move_files(
|
|||||||
let album = tag.album();
|
let album = tag.album();
|
||||||
let title = tag.title();
|
let title = tag.title();
|
||||||
let track_number = tag.get_string(ItemKey::TrackNumber);
|
let track_number = tag.get_string(ItemKey::TrackNumber);
|
||||||
let album_artist_path = tag.get_string(ItemKey::AlbumArtist).unwrap_or("None");
|
let album_artist_path = tag.get_string(ItemKey::AlbumArtist).unwrap_or("");
|
||||||
|
|
||||||
let artist_dir = if !album_artist_path.is_empty() {
|
let artist_dir = if !album_artist_path.is_empty() {
|
||||||
Some(album_artist_path)
|
Some(album_artist_path)
|
||||||
|
|||||||
Reference in New Issue
Block a user