mirror of
https://github.com/librespot-org/librespot.git
synced 2026-04-27 08:15:50 +03:00
[PR #593] [MERGED] Handle corrupt cache files #986
Labels
No labels
A-Alsa
SpotifyAPI
Tokio 1.0
audio
bug
can't reproduce
compilation
dependencies
duplicate
enhancement
good first issue
help wanted
high priority
imported
imported
invalid
new api
pull-request
question
reverse engineering
wiki
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/librespot#986
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/librespot-org/librespot/pull/593
Author: @Johannesd3
Created: 2/2/2021
Status: ✅ Merged
Merged: 2/9/2021
Merged by: @sashahilton00
Base:
dev← Head:fix-issue-591📝 Commits (4)
3446864Handle corrupt cache files (#591)f67ceb5Small refactoringd3495cfRe-add support for Rust 1.402f660f7Small refactor📊 Changes
3 files changed (+56 additions, -12 deletions)
View changed files
📝
audio/src/fetch.rs(+7 -0)📝
core/src/cache.rs(+13 -0)📝
playback/src/player.rs(+36 -12)📄 Description
Fixes #591.
If an
VorbisErroroccurs while opening a cached file, the cache file will be deleted and the track will be loaded again.I also refactored a piece of code above my fix which didn't make sense to me. The warning
<{}> in not available in format {:?}would never occur, would it?🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.