mirror of
https://github.com/librespot-org/librespot.git
synced 2024-12-18 17:11:53 +00:00
Count from the start for stability
This commit is contained in:
parent
8851951f04
commit
f2625965b3
1 changed files with 1 additions and 1 deletions
|
@ -281,7 +281,7 @@ impl Spirc {
|
|||
.flatten_stream()
|
||||
.map(|response| -> Result<(String, Frame), Error> {
|
||||
let uri_split: Vec<&str> = response.uri.split('/').collect();
|
||||
let username = match uri_split.get(uri_split.len() - 2) {
|
||||
let username = match uri_split.get(4) {
|
||||
Some(s) => s.to_string(),
|
||||
None => String::new(),
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue