mirror of
https://github.com/advplyr/audiobookshelf-app.git
synced 2026-08-27 13:54:01 +02:00
Sync offline playback progress
This commit is contained in:
@@ -166,8 +166,8 @@ class ApiClient {
|
||||
try? postResource(endpoint: "api/session/\(sessionId)/sync", parameters: report.asDictionary().mapValues({ value in "\(value)" }), callback: nil)
|
||||
}
|
||||
|
||||
public static func reportLocalMediaProgress(_ localMediaProgress: LocalMediaProgress, callback: @escaping (_ success: Bool) -> Void) {
|
||||
let progress = localMediaProgress.freeze()
|
||||
public static func reportLocalPlaybackProgress(_ session: PlaybackSession, callback: @escaping (_ success: Bool) -> Void) {
|
||||
let progress = session.freeze()
|
||||
postResource(endpoint: "api/session/local", parameters: progress, callback: callback)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user