refactor!: rename title field to name
This commit is contained in:
parent
5188527b94
commit
1b94dc1f40
88 changed files with 2142 additions and 2142 deletions
|
|
@ -67,7 +67,7 @@ impl RustyPipeQuery {
|
|||
.enumerate()
|
||||
.filter_map(|(i, track)| {
|
||||
if track.is_video {
|
||||
Some((i, track.title.to_owned()))
|
||||
Some((i, track.name.to_owned()))
|
||||
} else {
|
||||
None
|
||||
}
|
||||
|
|
@ -79,7 +79,7 @@ impl RustyPipeQuery {
|
|||
|
||||
for (i, title) in to_replace {
|
||||
let found_track = playlist.tracks.items.iter().find_map(|track| {
|
||||
if track.title == title && !track.is_video {
|
||||
if track.name == title && !track.is_video {
|
||||
Some((track.id.to_owned(), track.duration))
|
||||
} else {
|
||||
None
|
||||
|
|
|
|||
Reference in a new issue