fix: ignore extraction error when fetching album playlist
This commit is contained in:
parent
ee5e82f6bb
commit
49148711e0
1 changed files with 19 additions and 15 deletions
|
|
@ -75,8 +75,8 @@ impl RustyPipeQuery {
|
|||
.collect::<Vec<_>>();
|
||||
|
||||
if !to_replace.is_empty() {
|
||||
let playlist = self.music_playlist(playlist_id).await?;
|
||||
|
||||
match self.music_playlist(playlist_id).await {
|
||||
Ok(playlist) => {
|
||||
for (i, title) in to_replace {
|
||||
let found_track = playlist.tracks.items.iter().find_map(|track| {
|
||||
if track.name == title && !track.is_video {
|
||||
|
|
@ -94,6 +94,10 @@ impl RustyPipeQuery {
|
|||
}
|
||||
}
|
||||
}
|
||||
Err(Error::Extraction(_)) => {}
|
||||
Err(e) => return Err(e),
|
||||
}
|
||||
}
|
||||
}
|
||||
Ok(album)
|
||||
}
|
||||
|
|
|
|||
Reference in a new issue