And formatting
This commit is contained in:
parent
1753203c7d
commit
156316e638
5
src/external/library/beets/mod.rs
vendored
5
src/external/library/beets/mod.rs
vendored
@ -159,10 +159,7 @@ impl<BLE: IBeetsLibraryExecutor> BeetsLibrary<BLE> {
|
|||||||
let album_title = split[5].to_string();
|
let album_title = split[5].to_string();
|
||||||
let track_number = split[6].parse::<u32>()?;
|
let track_number = split[6].parse::<u32>()?;
|
||||||
let track_title = split[7].to_string();
|
let track_title = split[7].to_string();
|
||||||
let track_artist = split[8]
|
let track_artist = split[8].split("; ").map(|s| s.to_owned()).collect();
|
||||||
.split("; ")
|
|
||||||
.map(|s| s.to_owned())
|
|
||||||
.collect();
|
|
||||||
let track_format = match str_to_format(split[9].to_string().as_str()) {
|
let track_format = match str_to_format(split[9].to_string().as_str()) {
|
||||||
Some(format) => format,
|
Some(format) => format,
|
||||||
None => return Err(Error::Invalid(line.to_string())),
|
None => return Err(Error::Invalid(line.to_string())),
|
||||||
|
Loading…
Reference in New Issue
Block a user