mirror of
https://github.com/librespot-org/librespot.git
synced 2024-12-18 17:11:53 +00:00
Skip song if it fails to load
This commit is contained in:
parent
30bdcafb7e
commit
7ae919b1f7
2 changed files with 2 additions and 0 deletions
|
@ -253,6 +253,7 @@ impl PlayerInternal {
|
||||||
}
|
}
|
||||||
|
|
||||||
None => {
|
None => {
|
||||||
|
end_of_track.complete(());
|
||||||
if self.state.is_playing() {
|
if self.state.is_playing() {
|
||||||
self.run_onstop();
|
self.run_onstop();
|
||||||
}
|
}
|
||||||
|
|
|
@ -221,6 +221,7 @@ impl Session {
|
||||||
0x4a => (),
|
0x4a => (),
|
||||||
0x1b => {
|
0x1b => {
|
||||||
let country = String::from_utf8(data.as_ref().to_owned()).unwrap();
|
let country = String::from_utf8(data.as_ref().to_owned()).unwrap();
|
||||||
|
info!("Country: {:?}", country);
|
||||||
self.0.data.write().unwrap().country = country;
|
self.0.data.write().unwrap().country = country;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue