Skip to content

Commit

Permalink
Fix NextcloudBackend song download state being set to downloading aft…
Browse files Browse the repository at this point in the history
…er download finished

Signed-off-by: Claudio Cambra <[email protected]>
  • Loading branch information
claucambra committed Sep 27, 2024
1 parent c4c3ff9 commit 3f4c2fe
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions HarmonyKit/Backend/Nextcloud/NextcloudBackend.swift
Original file line number Diff line number Diff line change
Expand Up @@ -512,6 +512,7 @@ public class NextcloudBackend: NSObject, Backend, NKCommonDelegate, URLSessionWe
serverUrlFileName: song.url,
fileNameLocalPath: localPath,
progressHandler: { progress in
guard !progress.isFinished else { return }
song.downloadState = DownloadState.downloading.rawValue
song.downloadProgress = progress.fractionCompleted
},
Expand Down

0 comments on commit 3f4c2fe

Please sign in to comment.