feat: add original album track count, fix fetching albums with more than 200 tracks

This commit is contained in:
ThetaDev 2025-02-25 22:16:14 +01:00
parent 83f8652776
commit 544782f8de
No known key found for this signature in database
GPG key ID: E319D3C5148D65B6
18 changed files with 3870 additions and 5 deletions

View file

@ -245,12 +245,21 @@ mod tests {
for _ in 0..4 {
cache.get().await.unwrap();
}
tokio::time::sleep(Duration::from_millis(1000)).await;
for _ in 0..3 {
tokio::time::sleep(Duration::from_millis(1000)).await;
{
let vd = cache.inner.visitor_data.read().unwrap();
if !vd.contains(&v1) {
break;
}
}
}
{
let vd = cache.inner.visitor_data.read().unwrap();
assert!(!vd.contains(&v1), "first token still present");
}
assert_eq!(cache.get_pot(&v1), None);
}
}