mirror of
https://github.com/advplyr/audiobookshelf-app.git
synced 2025-07-31 16:14:59 +02:00
Functions to update local progress
This commit is contained in:
parent
c32c77b963
commit
f4e39ec7ca
4 changed files with 39 additions and 0 deletions
|
@ -151,6 +151,8 @@ struct LocalMediaProgress: Realmable, Codable {
|
|||
var libraryItemId: String?
|
||||
var episodeId: String?
|
||||
|
||||
var progressPercent: Int { Int(self.progress * 100) }
|
||||
|
||||
static func primaryKey() -> String? {
|
||||
return "id"
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue